Searched refs:CRC32DirectByteBuffer (Results 1 – 1 of 1) sorted by relevance
/art/test/580-crc32/src/ |
D | Main.java | 414 private static long CRC32DirectByteBuffer(byte[] bytes, int off, int len) { in CRC32DirectByteBuffer() method in Main 442 assertEqual(0L, CRC32DirectByteBuffer(new byte[] {}, 0, 0)); in TestCRC32UpdateDirectByteBuffer() 443 assertEqual(0L, CRC32DirectByteBuffer(new byte[] {0}, 0, 0)); in TestCRC32UpdateDirectByteBuffer() 444 assertEqual(0L, CRC32DirectByteBuffer(new byte[] {0}, 1, 0)); in TestCRC32UpdateDirectByteBuffer() 445 assertEqual(0L, CRC32DirectByteBuffer(new byte[] {0, 0}, 1, 0)); in TestCRC32UpdateDirectByteBuffer() 447 assertEqual(CRC32Byte(0), CRC32DirectByteBuffer(new byte[] {0}, 0, 1)); in TestCRC32UpdateDirectByteBuffer() 448 assertEqual(CRC32Byte(1), CRC32DirectByteBuffer(new byte[] {1}, 0, 1)); in TestCRC32UpdateDirectByteBuffer() 449 assertEqual(CRC32Byte(0x0f), CRC32DirectByteBuffer(new byte[] {0x0f}, 0, 1)); in TestCRC32UpdateDirectByteBuffer() 450 assertEqual(CRC32Byte(0xff), CRC32DirectByteBuffer(new byte[] {-1}, 0, 1)); in TestCRC32UpdateDirectByteBuffer() 452 CRC32DirectByteBuffer(new byte[] {0, 0, 0}, 0, 3)); in TestCRC32UpdateDirectByteBuffer() [all …]
|