Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for byteTable (0.08 seconds)

  1. 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.
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Aug 11 19:31:30 GMT 2025
    - 6.6K bytes
    - Click Count (0)
  2. 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:
         *
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 30.5K bytes
    - Click Count (0)
Back to Top