Gst.Memory.new_wrapped
function new_wrapped(flags:Gst.MemoryFlags, data:[guint8], maxsize:gsize, offset:gsize, notify:GLib.DestroyNotify):Gst.Memory { // Gjs wrapper for gst_memory_new_wrapped() }
Allocate a new memory block that wraps the given data.
The prefix/padding must be filled with 0 if flags contains #GST_MEMORY_FLAG_ZERO_PREFIXED and #GST_MEMORY_FLAG_ZERO_PADDED respectively.
- flags
- data
data to wrap
- maxsize
allocated size of data
- offset
offset in data
- notify
called with user_data when the memory is freed
- Returns
a new Gst.Memory.