Import line: | Gio = imports.gi.Gio; |
GIR File: | Gio-2.0.gir |
C documentation: | GSeekable |
Interface : | Seekable |
Implementations: | Gio.FileIOStream, Gio.FileInputStream, Gio.FileOutputStream, Gio.MemoryInputStream, Gio.MemoryOutputStream |
None |
Method / Constructor | Defined By | |
---|---|---|
can_seek
()
:
gboolean
Tests if the stream supports the GSeekableIface.
Tests if the stream supports the GSeekableIface.
|
Gio.Seekable | |
can_truncate
()
:
gboolean
Tests if the stream can be truncated.
Tests if the stream can be truncated.
|
Gio.Seekable | |
Seeks in the stream by the given offset, modified by type.
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. has occurred, this function will return FALSE and set error appropriately if present.
|
Gio.Seekable | |
tell
()
:
gint64
Tells the current position within the stream.
Tells the current position within the stream.
|
Gio.Seekable | |
Truncates a stream with a given offset.
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. has occurred, this function will return FALSE and set error appropriately if present.
|
Gio.Seekable |
None |