Gio.MemoryOutputStream.prototype.steal_data
function steal_data(): void { // Gjs wrapper for g_memory_output_stream_steal_data() }
Gets any loaded data from the ostream. Ownership of the data is transferred to the caller; when no longer needed it must be freed using the free function set in ostream's Gio.MemoryOutputStream-destroy-function property.
ostream must be closed before calling this function.
Since 2.26
- Returns
the stream's data