Gst.Buffer.prototype.n_memory

function n_memory():Number {
    // Gjs wrapper for gst_buffer_n_memory()
}

Get the amount of memory blocks that this buffer has. This amount is never larger than what Gst.buffer_get_max_memory returns.

Returns

the amount of memory block in this buffer.