public static unsafe int HashCodeAscii(byte[] bytes, int startPos, int length) { if (length == 0) { return(HashCodeAsciiSeed); } fixed(byte *array = &bytes[startPos]) return(PlatformDependent0.HashCodeAscii(array, length)); }
public static unsafe bool ByteArrayEquals(byte[] bytes1, int startPos1, byte[] bytes2, int startPos2, int length) { if (length <= 0) { return(true); } fixed(byte *array1 = &bytes1[startPos1]) fixed(byte *array2 = &bytes2[startPos2]) return(PlatformDependent0.ByteArrayEquals(array1, array2, length)); }