UnsafeUtility.MemCmp(IntPtr,IntPtr,ulong)

Parameters

ptr1 Pointer to the first memory buffer.
ptr2 Pointer to the second memory buffer to compare the first one to.
size Number of bytes to compare.

Returns

void 0 if the contents are identical, non-zero otherwise.

Description

Checks whether two memory regions are identical.

This method compares a specified memory region in the first given memory buffer with the same region in the second given memory buffer to determine if they are identical. The memory regions might overlap. Returns 0 if the contents of the two regions are identical.


Did you find this page useful? Please give it a rating: