MemoryOutputStream.stealAsBytes

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

class MemoryOutputStream
stealAsBytes
()

Return Value

Type: glib.bytes.Bytes

the stream's data