Gio.MemoryOutputStream.prototype.steal_as_bytes
function steal_as_bytes(): ByteArray { // Gjs wrapper for g_memory_output_stream_steal_as_bytes() }
Returns data from the ostream as a GLib.Bytes. ostream must be closed before calling this function.
Since 2.34
- Returns
the stream's data