Gst.Memory.prototype.share
function share(offset:gssize, size:gssize):Gst.Memory { // Gjs wrapper for gst_memory_share() }
Return a shared copy of size bytes from mem starting from offset. No memory copy is performed and the memory region is simply shared. The result is guaranteed to be not-writable. size can be set to -1 to return a share all bytes from offset.
- offset
an offset to share
- size
size to share or -1 to share bytes from offset
- Returns
a new Gst.Memory.