|Inherited:||Gio.OutputStream (29), GObject.Object (37), Gio.PollableOutputStream (5), Gio.Seekable (5)|
|Inherited:||Gio.OutputStream (15), GObject.Object (7), Gio.PollableOutputStream (5), Gio.Seekable (5)|
||r/w/co||Pointer to buffer where data will be written.|
||r||Size of data written to the buffer.|
||r/w/co||Current size of the data buffer.|
Abstract: No Structure:
Gio.MemoryOutputStreamis a class for using arbitrary memory chunks as output for GIO streaming output operations.
New in version 2.36.
Returns: pointer to the stream’s data, or
Noneif the data has been stolen
Gets any loaded data from the self.
Note that the returned pointer may become invalid on the next write or truncate operation on the stream.
Returns: the number of bytes written to the stream Return type:
Returns the number of bytes from the start up to including the last byte written in the stream that has not been truncated away.
New in version 2.18.
Returns: the number of bytes allocated for the data buffer Return type:
Gets the size of the currently allocated data area (available from
You probably don’t want to use this function on resizable streams. See
Gio.MemoryOutputStream.get_data_size() instead. For resizable streams the size returned by this function is an implementation detail and may be change at any time in response to operations on the stream.
If the stream is fixed-sized (ie: no realloc was passed to g_memory_output_stream_new()) then this is the maximum size of the stream and further writes will return
In any case, if you want the number of bytes currently written to the stream, use
Returns: the stream’s data Return type:
Returns data from the self as a
GLib.Bytes. self must be closed before calling this function.
New in version 2.34.
Returns: the stream’s data, or
Noneif it has previously been stolen
Gets any loaded data from the self. Ownership of the data is transferred to the caller; when no longer needed it must be freed using the free function set in self’s
self must be closed before calling this function.
New in version 2.26.
Pointer to buffer where data will be written.
New in version 2.24.
Size of data written to the buffer.
New in version 2.24.