Lines Matching refs:off

157   private static long CRC32ByteArray(byte[] bytes, int off, int len) {  in CRC32ByteArray()  argument
159 crc32.update(bytes, off, len); in CRC32ByteArray()
185 private static boolean CRC32ByteArrayThrowsAIOOBE(byte[] bytes, int off, int len) { in CRC32ByteArrayThrowsAIOOBE() argument
188 crc32.update(bytes, off, len); in CRC32ByteArrayThrowsAIOOBE()
217 private static long CRC32BytesUsingUpdateInt(byte[] bytes, int off, int len) { in CRC32BytesUsingUpdateInt() argument
220 crc32.update(bytes[off++]); in CRC32BytesUsingUpdateInt()
319 int off = rnd.nextInt(bytes.length / 2); in TestCRC32UpdateBytes() local
321 assertEqual(CRC32BytesUsingUpdateInt(bytes, off, len), in TestCRC32UpdateBytes()
322 CRC32ByteArray(bytes, off, len)); in TestCRC32UpdateBytes()
342 off = rnd.nextInt(bytes.length - len); in TestCRC32UpdateBytes()
343 assertEqual(CRC32BytesUsingUpdateInt(bytes, off, len), in TestCRC32UpdateBytes()
344 CRC32ByteArray(bytes, off, len)); in TestCRC32UpdateBytes()
347 private static long CRC32ByteBuffer(byte[] bytes, int off, int len) { in CRC32ByteBuffer() argument
348 ByteBuffer buf = ByteBuffer.wrap(bytes, 0, off + len); in CRC32ByteBuffer()
349 buf.position(off); in CRC32ByteBuffer()
386 int off = rnd.nextInt(bytes.length / 2); in TestCRC32UpdateByteBuffer() local
388 assertEqual(CRC32BytesUsingUpdateInt(bytes, off, len), in TestCRC32UpdateByteBuffer()
389 CRC32ByteBuffer(bytes, off, len)); in TestCRC32UpdateByteBuffer()
409 off = rnd.nextInt(bytes.length - len); in TestCRC32UpdateByteBuffer()
410 assertEqual(CRC32BytesUsingUpdateInt(bytes, off, len), in TestCRC32UpdateByteBuffer()
411 CRC32ByteBuffer(bytes, off, len)); in TestCRC32UpdateByteBuffer()
414 private static long CRC32DirectByteBuffer(byte[] bytes, int off, int len) { in CRC32DirectByteBuffer() argument
415 final int total_len = off + len; in CRC32DirectByteBuffer()
417 buf.position(off); in CRC32DirectByteBuffer()
502 int off = rnd.nextInt(bytes.length / 2); in TestCRC32UpdateDirectByteBuffer() local
504 assertEqual(CRC32BytesUsingUpdateInt(bytes, off, len), in TestCRC32UpdateDirectByteBuffer()
505 CRC32DirectByteBuffer(bytes, off, len)); in TestCRC32UpdateDirectByteBuffer()
525 off = rnd.nextInt(bytes.length - len); in TestCRC32UpdateDirectByteBuffer()
526 assertEqual(CRC32BytesUsingUpdateInt(bytes, off, len), in TestCRC32UpdateDirectByteBuffer()
527 CRC32DirectByteBuffer(bytes, off, len)); in TestCRC32UpdateDirectByteBuffer()