Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 142 for hashLong (0.18 sec)

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

      }
    
      public void testKnownLongInputs() {
        assertHash(1669671676, murmur3_32().hashLong(0L));
        assertHash(-846261623, murmur3_32().hashLong(-42L));
        assertHash(1871679806, murmur3_32().hashLong(42L));
        assertHash(1366273829, murmur3_32().hashLong(Long.MIN_VALUE));
        assertHash(-2106506049, murmur3_32().hashLong(Long.MAX_VALUE));
      }
    
      public void testKnownStringInputs() {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Sep 08 13:56:22 GMT 2021
    - 8.6K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/hash/Murmur3Hash32Test.java

      }
    
      public void testKnownLongInputs() {
        assertHash(1669671676, murmur3_32().hashLong(0L));
        assertHash(-846261623, murmur3_32().hashLong(-42L));
        assertHash(1871679806, murmur3_32().hashLong(42L));
        assertHash(1366273829, murmur3_32().hashLong(Long.MIN_VALUE));
        assertHash(-2106506049, murmur3_32().hashLong(Long.MAX_VALUE));
      }
    
      public void testKnownStringInputs() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 08 13:56:22 GMT 2021
    - 8.6K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/hash/HashingTest.java

            Hashing.md5().bits() + Hashing.md5().bits(),
            Hashing.concatenating(Hashing.md5(), Hashing.md5()).bits());
        assertEquals(
            Hashing.md5().bits() + Hashing.murmur3_32().bits(),
            Hashing.concatenating(Hashing.md5(), Hashing.murmur3_32()).bits());
        assertEquals(
            Hashing.md5().bits() + Hashing.murmur3_32().bits() + Hashing.murmur3_128().bits(),
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 26.5K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/hash/AbstractHashFunction.java

        return newHasher().putString(input, charset).hash();
      }
    
      @Override
      public HashCode hashInt(int input) {
        return newHasher(4).putInt(input).hash();
      }
    
      @Override
      public HashCode hashLong(long input) {
        return newHasher(8).putLong(input).hash();
      }
    
      @Override
      public HashCode hashBytes(byte[] input) {
        return hashBytes(input, 0, input.length);
      }
    
      @Override
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 20 18:43:59 GMT 2021
    - 2.5K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/hash/HashingTest.java

            Hashing.md5().bits() + Hashing.md5().bits(),
            Hashing.concatenating(Hashing.md5(), Hashing.md5()).bits());
        assertEquals(
            Hashing.md5().bits() + Hashing.murmur3_32().bits(),
            Hashing.concatenating(Hashing.md5(), Hashing.murmur3_32()).bits());
        assertEquals(
            Hashing.md5().bits() + Hashing.murmur3_32().bits() + Hashing.murmur3_128().bits(),
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 26.5K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/hash/AbstractNonStreamingHashFunction.java

      }
    
      @Override
      public HashCode hashInt(int input) {
        return hashBytes(ByteBuffer.allocate(4).order(ByteOrder.LITTLE_ENDIAN).putInt(input).array());
      }
    
      @Override
      public HashCode hashLong(long input) {
        return hashBytes(ByteBuffer.allocate(8).order(ByteOrder.LITTLE_ENDIAN).putLong(input).array());
      }
    
      @Override
      public HashCode hashUnencodedChars(CharSequence input) {
        int len = input.length();
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 20 18:43:59 GMT 2021
    - 3.8K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/hash/Murmur3_32HashFunction.java

          new Murmur3_32HashFunction(0, /* supplementaryPlaneFix= */ true);
    
      // We can include the non-BMP fix here because Hashing.goodFastHash stresses that the hash is a
      // temporary-use one. Therefore it shouldn't be persisted.
      static final HashFunction GOOD_FAST_HASH_32 =
          new Murmur3_32HashFunction(Hashing.GOOD_FAST_HASH_SEED, /* supplementaryPlaneFix= */ true);
    
      private static final int CHUNK_SIZE = 4;
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Jun 15 20:59:00 GMT 2022
    - 11.9K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/hash/HashFunction.java

     *       array. This hashing API accepts an arbitrary sequence of byte and multibyte values (via
     *       {@link Hasher}), but this is merely a convenience; these are always translated into raw
     *       byte sequences under the covers.
     *   <li><b>hash code:</b> each hash function always yields hash codes of the same fixed bit length
     *       (given by {@link #bits}). For example, {@link Hashing#sha1} produces a 160-bit number,
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue May 25 18:22:59 GMT 2021
    - 10.9K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/hash/HashTestUtils.java

      }
    
      private static void assertHashLongEquivalence(HashFunction hashFunction, Random random) {
        long l = random.nextLong();
        assertEquals(hashFunction.hashLong(l), hashFunction.newHasher().putLong(l).hash());
      }
    
      private static final ImmutableSet<Charset> CHARSETS =
          ImmutableSet.of(
              Charsets.ISO_8859_1,
              Charsets.US_ASCII,
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 25.3K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/hash/HashTestUtils.java

      }
    
      private static void assertHashLongEquivalence(HashFunction hashFunction, Random random) {
        long l = random.nextLong();
        assertEquals(hashFunction.hashLong(l), hashFunction.newHasher().putLong(l).hash());
      }
    
      private static final ImmutableSet<Charset> CHARSETS =
          ImmutableSet.of(
              Charsets.ISO_8859_1,
              Charsets.US_ASCII,
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 25.3K bytes
    - Viewed (0)
Back to top