UnsafeUtility.MemCmp(IntPtr,IntPtr,ulong)

매뉴얼로 전환

파라미터

ptr1Pointer to the first memory buffer.
ptr2Pointer to the second memory buffer to compare the first one to.
sizeNumber of bytes to compare.

반환

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

설명

Checks to see whether two memory regions are identical or not by comparing a specified memory region in the first given memory buffer with the same region in the second given memory buffer.

The memory regions may overlap. Returns 0 if the contents of the two regions are identical.