MemoryOutputStream.stealAsBytes

glib.bytes.Bytes stealAsBytes() nothrow

Returns data from the ostream as a #GBytes. ostream must be closed before calling this function.

Returns

the stream's data