Gst.Buffer.new_wrapped

function new_wrapped(data:[guint8]):Gst.Buffer {
    // Gjs wrapper for gst_buffer_new_wrapped()
}

Creates a new buffer that wraps the given data. The memory will be freed with g_free and will be marked writable.

MT safe.

data

data to wrap

Returns

a new Gst.Buffer