- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for byteTable (0.24 sec)
-
guava-tests/test/com/google/common/hash/Crc32cHashFunctionTest.java
assertCrc(referenceCrc(bytes), bytes); } } private static int referenceCrc(byte[] bytes) { int crc = ~0; for (byte b : bytes) { crc = (crc >>> 8) ^ Crc32cHashFunction.Crc32cHasher.byteTable[(crc ^ b) & 0xFF]; } return ~crc; } /** * Verifies that the crc of an array of byte data matches the expected value. * * @param expectedCrc the expected crc value.
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Aug 11 19:31:30 UTC 2025 - 6.6K bytes - Viewed (0) -
guava/src/com/google/common/hash/Crc32cHashFunction.java
* CRC(A000A000A000...), CRC(0B000B000B...), CRC(00C000C000C...), CRC(000D000D000D...) * and then to XOR them together. The strideTable enables us to hash an int followed by 12 * zero bytes (3 ints), while the byteTable is for advancing one byte at a time. * This algorithm is due to the paper "Everything we know about CRC but [are] afraid to forget" * by Kadatch and Jenkins, 2010. */ Crc32cHasher() { super(16);
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Sat Dec 28 01:26:26 UTC 2024 - 21.2K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/FluentIterableTest.java
public void testConcatIntersectionType() { Iterable<A> aIterable = ImmutableList.of(); Iterable<B> bIterable = ImmutableList.of(); Predicate<X> xPredicate = Predicates.alwaysTrue(); Predicate<Y> yPredicate = Predicates.alwaysTrue(); FluentIterable<?> unused = FluentIterable.concat(aIterable, bIterable).filter(xPredicate).filter(yPredicate); /* The following fails to compile: *
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 30.5K bytes - Viewed (0)