Gst.Buffer.prototype.resize_range

function resize_range(idx:Number, length:Number, offset:gssize, size:gssize):Boolean {
    // Gjs wrapper for gst_buffer_resize_range()
}

Set the total size of the length memory blocks starting at idx in buffer

idx

an index

length

a length

offset

the offset adjustement

size

the new size or -1 to just adjust the offset

Returns

true if resizing succeeded, false otherwise.