Gst.Memory.prototype.copy
function copy(offset:gssize, size:gssize):Gst.Memory { // Gjs wrapper for gst_memory_copy() }
Return a copy of size bytes from mem starting from offset. This copy is guaranteed to be writable. size can be set to -1 to return a copy all bytes from offset.
- offset
an offset to copy
- size
size to copy or -1 to copy all bytes from offset
- Returns
a new Gst.Memory.