Lines Matching refs:bytes
27 (byte) 0x67, (byte) 0x45, (byte) 0x23, (byte) 0x01, // up to here, same bytes as above
30 0x89abcdef, 0x0123456789abcdefL, // asInt/asLong as above, due to equal eight first bytes
46 // expectedHashCodes must contain at least one hash code with 4 bytes
49 if (expected.bytes.length == 4) {
56 // expectedHashCodes must contain at least one hash code with 8 bytes
59 if (expected.bytes.length == 8) {
68 HashCode fromBytes = HashCodes.fromBytes(expected.bytes);
74 assertTrue(Arrays.equals(expected.bytes, hash.asBytes()));
77 assertTrue(Arrays.equals(expected.bytes, bb));
104 for (int bytes = 0; bytes < totalBytes; bytes++) {
105 byte[] bb = new byte[bytes];
108 assertTrue(Arrays.equals(Arrays.copyOf(hashBytes, bytes), bb));
113 final byte[] bytes;
117 ExpectedHashCode(byte[] bytes, int asInt, Long asLong, String toString) {
118 this.bytes = bytes;