Gio.MemoryInputStream.new_from_data
function new_from_data(data: ByteArray, destroy: GLib.DestroyNotify): Gio.InputStream { // Gjs wrapper for g_memory_input_stream_new_from_data() }
Creates a new Gio.MemoryInputStream with data in memory of a given size.
- data
input data
- destroy
function that is called to free data, or null
- Returns
new Gio.InputStream read from data of len bytes.