GSeekableIface

Provides an interface for implementing seekable functionality on I/O Streams.

Members

Variables

canSeek
bool function(GSeekable* seekable) canSeek;

Checks if seeking is supported by the stream.

canTruncate
bool function(GSeekable* seekable) canTruncate;

Checks if truncation is supported by the stream.

gIface
GTypeInterface gIface;

The parent interface.

seek
bool function(GSeekable* seekable, long offset, GSeekType type, GCancellable* cancellable, GError** _err) seek;

Seeks to a location within a stream.

tell
long function(GSeekable* seekable) tell;

Tells the current location within a stream.

truncateFn
bool function(GSeekable* seekable, long offset, GCancellable* cancellable, GError** _err) truncateFn;

Truncates a stream.