Gst.Memory.prototype.is_span
function is_span(mem2:Gst.Memory, offset:gsize):Boolean { // Gjs wrapper for gst_memory_is_span() }
Check if mem1 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 mem1 and mem2 can be merged efficiently by performing Gst.share on the parent object from the returned offset.
- mem2
- offset
a pointer to a result offset
- Returns
true if the memory is contiguous and of a common parent.