SeekableT

GSeekable is implemented by streams (implementations of GInputStream or GOutputStream) that support seeking.

Members

Functions

canSeek
int canSeek()

Tests if the stream supports the GSeekableIface.

canTruncate
int canTruncate()

Tests if the stream can be truncated.

getSeekableTStruct
GSeekable* getSeekableTStruct()

Get the main Gtk struct

seek
int seek(long offset, GSeekType type, Cancellable cancellable)

Seeks in the stream by the given offset, modified by type. If cancellable is not NULL, then the operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, the error G_IO_ERROR_CANCELLED will be returned.

tell
long tell()

Tells the current position within the stream.

truncate
int truncate(long offset, Cancellable cancellable)

Truncates a stream with a given offset. If cancellable is not NULL, then the operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, the error G_IO_ERROR_CANCELLED will be returned. If an operation was partially finished when the operation was cancelled the partial result will be returned, without an error. Virtual: truncate_fn

Variables

gSeekable
GSeekable* gSeekable;

the main Gtk struct

Meta