is_span


Description:

public bool is_span (Memory mem2, out size_t offset)

Check if this and mem2 share the memory with a common parent memory object and that the memory is contiguous.

If this is the case, the memory of this and mem2 can be merged efficiently by performing share on the parent object from the returned offset.

Parameters:

this

a Memory

mem2

a Memory

offset

a pointer to a result offset

Returns:

true if the memory is contiguous and of a common parent.




2022 vala-language.org