MemoryOutputStream.stealAsBytes

glib.bytes.Bytes stealAsBytes()

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

Returns

the stream's data