Gst.Buffer.prototype.get_all_memory

function get_all_memory():Gst.Memory {
    // Gjs wrapper for gst_buffer_get_all_memory()
}

Get all the memory block in buffer. The memory blocks will be merged into one large Gst.Memory.

Returns

a Gst.Memory that contains the merged memory. Use gst_memory_unref () after usage.