Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for murmurHash64WithSeed (0.25 sec)

  1. guava/src/com/google/common/hash/Fingerprint2011.java

      }
    
      // End of public functions.
    
      @VisibleForTesting
      static long fingerprint(byte[] bytes, int offset, int length) {
        long result;
    
        if (length <= 32) {
          result = murmurHash64WithSeed(bytes, offset, length, K0 ^ K1 ^ K2);
        } else if (length <= 64) {
          result = hashLength33To64(bytes, offset, length);
        } else {
          result = fullFingerprint(bytes, offset, length);
        }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Dec 28 17:50:25 UTC 2021
    - 6.5K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/hash/Fingerprint2011Test.java

        byte[] bytes = "test".getBytes(UTF_8);
        assertEquals(
            1618900948208871284L, Fingerprint2011.murmurHash64WithSeed(bytes, 0, bytes.length, 1));
    
        bytes = "test test test".getBytes(UTF_8);
        assertEquals(
            UnsignedLong.valueOf("12313169684067793560").longValue(),
            Fingerprint2011.murmurHash64WithSeed(bytes, 0, bytes.length, 1));
      }
    
      public void testPutNonChars() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 7.6K bytes
    - Viewed (0)
Back to top