Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for CRC (0.01 sec)

  1. android/guava-tests/test/com/google/common/hash/Crc32cHashFunctionTest.java

      }
    
      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.
       * @param data the data to run the checksum on.
       */
    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. guava/src/com/google/common/hash/Hashing.java

            return javaUtilZip;
          } catch (ClassNotFoundException runningUnderJava8) {
            return ABSTRACT_HASH_FUNCTION;
          }
        }
      }
    
      /**
       * 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
       * HashCode} produced by this function, use {@link HashCode#padToLong()}.
       *
    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