Gio.MemoryOutputStream
const Gio = imports.gi.Gio;
let memoryOutputStream = new Gio.MemoryOutputStream({
data: value,
destroy_function: value,
realloc_function: value,
size: value,
});
Gio.MemoryOutputStream is a class for using arbitrary memory chunks as output for GIO streaming output operations.
As of GLib 2.34, Gio.MemoryOutputStream trivially implements Gio.PollableOutputStream: it always polls as ready.
Hierarchy
-
GObject.Object
-
Gio.OutputStream
- Gio.MemoryOutputStream
-