Gst.Buffer.prototype.get_size

function get_size():gsize {
    // Gjs wrapper for gst_buffer_get_size()
}

Get the total size of the memory blocks in buffer.

Returns

total size of the memory blocks in buffer.