Gst.Buffer.new_wrapped_full

function new_wrapped_full(flags:Gst.MemoryFlags, data:[guint8], maxsize:gsize, offset:gsize, notify:GLib.DestroyNotify):Gst.Buffer {
    // Gjs wrapper for gst_buffer_new_wrapped_full()
}

Allocate a new buffer that wraps the given memory. data must point to maxsize of memory, the wrapped buffer will have the region from offset and size visible.

When the buffer is destroyed, notify will be called with user_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

Gst.MemoryFlags

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.Buffer