MemoryOutputStream.getSize

Gets the size of the currently allocated data area (available from g_memory_output_stream_get_data()). If the stream isn't growable (no realloc was passed to g_memory_output_stream_new()) then this is the maximum size of the stream and further writes will return G_IO_ERROR_NO_SPACE. Note that for growable streams the returned size may become invalid on the next write or truncate operation on the stream. If you want the number of bytes currently written to the stream, use g_memory_output_stream_get_data_size().

class MemoryOutputStream
getSize
()

Return Value

Type: gsize

the number of bytes allocated for the data buffer

Meta