gMemoryOutputStreamGetSize: gMemoryOutputStreamGetSize
Description
Gets the size of the currently allocated data area (availible from
gMemoryOutputStreamGetData
). If the stream isn't
growable (no realloc was passed to gMemoryOutputStreamNew
) then
this is the maximum size of the stream and further writes
will return G_IO_ERROR_NO_SPACE
.Usage
gMemoryOutputStreamGetSize(object)
Details
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
gMemoryOutputStreamGetDataSize
.