Gst.Buffer.prototype.set_size

function set_size(size:gssize):void {
    // Gjs wrapper for gst_buffer_set_size()
}

Set the total size of the memory blocks in buffer.

size

the new size