gio.file_iostream.FileIOStream provides I/O streams that both read and write to the same file handle.
gio.file_iostream.FileIOStream implements gio.seekable.Seekable, which allows the I/O stream to jump to arbitrary positions in the file and to truncate the file, provided the filesystem of the file supports these operations.
To find the position of a file I/O stream, use gio.seekable.Seekable.tell.
To find out if a file I/O stream supports seeking, use gio.seekable.Seekable.canSeek. To position a file I/O stream, use gio.seekable.Seekable.seek. To find out if a file I/O stream supports truncating, use gio.seekable.Seekable.canTruncate. To truncate a file I/O stream, use gio.seekable.Seekable.truncate.
The default implementation of all the gio.file_iostream.FileIOStream operations and the implementation of gio.seekable.Seekable just call into the same operations on the output stream.
gio.file_iostream.FileIOStream provides I/O streams that both read and write to the same file handle.
gio.file_iostream.FileIOStream implements gio.seekable.Seekable, which allows the I/O stream to jump to arbitrary positions in the file and to truncate the file, provided the filesystem of the file supports these operations.
To find the position of a file I/O stream, use gio.seekable.Seekable.tell.
To find out if a file I/O stream supports seeking, use gio.seekable.Seekable.canSeek. To position a file I/O stream, use gio.seekable.Seekable.seek. To find out if a file I/O stream supports truncating, use gio.seekable.Seekable.canTruncate. To truncate a file I/O stream, use gio.seekable.Seekable.truncate.
The default implementation of all the gio.file_iostream.FileIOStream operations and the implementation of gio.seekable.Seekable just call into the same operations on the output stream.