Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for Crc32cHashFunction (0.07 sec)

  1. android/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.
       *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 6.6K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/hash/Hashing.java

       * href="https://en.wikipedia.org/wiki/Hash_function">hash function</a>.
       *
       * @since 18.0
       */
      public static HashFunction crc32c() {
        return Crc32cHashFunction.CRC_32_C;
      }
    
      /**
       * Returns a hash function implementing the CRC-32 checksum algorithm (32 hash bits).
       *
       * <p>To get the {@code long} value equivalent to {@link Checksum#getValue()} for a {@code
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Jul 17 15:26:41 UTC 2025
    - 29.8K bytes
    - Viewed (0)
  3. guava/src/com/google/common/hash/Hashing.java

          public HashFunction get() {
            return ChecksumType.CRC_32C.hashFunction;
          }
        },
        ABSTRACT_HASH_FUNCTION {
          @Override
          public HashFunction get() {
            return Crc32cHashFunction.CRC_32_C;
          }
        };
    
        static final HashFunction HASH_FUNCTION = pickFunction().get();
    
        private static Crc32CSupplier pickFunction() {
          Crc32CSupplier[] functions = values();
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 22:06:57 UTC 2025
    - 31.1K bytes
    - Viewed (0)
Back to top