Gst.Buffer.prototype.get_sizes_range
function get_sizes_range(idx:Number, length:Number):gsize { // Gjs wrapper for gst_buffer_get_sizes_range() }
Get the total size of length memory blocks stating from idx in buffer.
When not null, offset will contain the offset of the data in the memory block in buffer at idx and maxsize will contain the sum of the size and offset and the amount of extra padding on the memory block at idx + length -1. offset and maxsize can be used to resize the buffer memory blocks with Gst.resize_range.
- idx
an index
- length
a length
- Returns
total size of length memory blocks starting at idx in buffer.