Check if mem1 and mem2 occupy contiguous memory and return the offset of mem1 in the parent buffer in offset.
TRUE if mem1 and mem2 are in contiguous memory.
Check if mem1 and mem2 occupy contiguous memory and return the offset of mem1 in the parent buffer in offset.