share


Description:

public Memory share (ssize_t offset, ssize_t size)

Return a shared copy of size bytes from this starting from offset.

No memory copy is performed and the memory region is simply shared. The result is guaranteed to be non-writable. size can be set to -1 to return a shared copy from offset to the end of the memory region.

Parameters:

this

a Memory

offset

offset to share from

size

size to share, or -1 to share to the end of the memory region

Returns:

a new Memory.




2022 vala-language.org