/// <summary> /// Compare bytes in two buffers. /// </summary> /// <param name="buff1">First buffer.</param> /// <param name="buff2">Second buffer.</param> /// <param name="count">Number of bytes to compare.</param> /// <returns>true if buff1 identical to buff2, otherwise false.</returns> public static unsafe bool Compare(byte *buff1, byte *buff2, int count) { return(CMemory.C_memcmp(buff2, buff1, (ulong)count) == 0); }
public static unsafe int memcmp(void *ptr1, void *ptr2, ulong count) { return(CMemory.C_memcmp(ptr1, ptr2, count)); }