Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 492 for hashfn (6.55 sec)

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

        return HashCode.fromBytes(bb.array());
      }
    
      public void testParanoid() {
        HashFn hf =
            new HashFn() {
              @Override
              public byte[] hash(byte[] input, int seed) {
                Hasher hasher = murmur3_128(seed).newHasher();
                Funnels.byteArrayFunnel().funnel(input, hasher);
                return hasher.hash().asBytes();
              }
            };
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 3.2K bytes
    - Viewed (0)
  2. android/guava-tests/benchmark/com/google/common/hash/MessageDigestAlgorithmBenchmark.java

        SHA_512("SHA-512", Hashing.sha512());
    
        private final String algorithmName;
        private final HashFunction hashFn;
    
        Algorithm(String algorithmName, HashFunction hashFn) {
          this.algorithmName = algorithmName;
          this.hashFn = hashFn;
        }
    
        public MessageDigest getMessageDigest() {
          try {
            return MessageDigest.getInstance(algorithmName);
          } catch (NoSuchAlgorithmException e) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 3.5K bytes
    - Viewed (0)
  3. guava-tests/benchmark/com/google/common/hash/MessageDigestAlgorithmBenchmark.java

        SHA_512("SHA-512", Hashing.sha512());
    
        private final String algorithmName;
        private final HashFunction hashFn;
    
        Algorithm(String algorithmName, HashFunction hashFn) {
          this.algorithmName = algorithmName;
          this.hashFn = hashFn;
        }
    
        public MessageDigest getMessageDigest() {
          try {
            return MessageDigest.getInstance(algorithmName);
          } catch (NoSuchAlgorithmException e) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 3.5K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/hash/Murmur3Hash32Test.java

      }
    
      public void testParanoid() {
        HashFn hf =
            new HashFn() {
              @Override
              public byte[] hash(byte[] input, int seed) {
                Hasher hasher = murmur3_32(seed).newHasher();
                Funnels.byteArrayFunnel().funnel(input, hasher);
                return hasher.hash().asBytes();
              }
            };
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 08 13:56:22 UTC 2021
    - 8.6K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/hash/HashTestUtils.java

            int key2 = key1 ^ (1 << i);
            // get hashes
            int hash1 = function.hashInt(key1).asInt();
            int hash2 = function.hashInt(key2).asInt();
            // test whether the hash values have same output bits
            same |= ~(hash1 ^ hash2);
            // test whether the hash values have different output bits
            diff |= (hash1 ^ hash2);
    
            count++;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Oct 10 19:45:10 UTC 2022
    - 25.3K bytes
    - Viewed (0)
  6. src/go/internal/gccgoimporter/testdata/v1reflect.gox

    1 "Value" <type 2 struct { .reflect.typ <type 3 *<type 4 ".reflect.commonType" <type 5 struct { .reflect.kind <type -5>; .reflect.align <type -1>; .reflect.fieldAlign <type -5>; .reflect._ <type -5>; .reflect.size <type -13>; .reflect.hash <type -7>; .reflect.hashfn <type 6 (? <type 7 "unsafe.Pointer" <type 8 *any>>, ? <type -13>)>; .reflect.equalfn <type 9 (? <type 7>, ? <type 7>, ? <type -13>)>; .reflect.string <type 10 *<type -16>>; ? <type 11 *<type 12 ".reflect.uncommonType" <type 13 struct {...
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 30 21:33:51 UTC 2021
    - 10.3K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/hash/Hasher.java

     */
    @Beta
    @ElementTypesAreNonnullByDefault
    public interface Hasher extends PrimitiveSink {
      @CanIgnoreReturnValue
      @Override
      Hasher putByte(byte b);
    
      @CanIgnoreReturnValue
      @Override
      Hasher putBytes(byte[] bytes);
    
      @CanIgnoreReturnValue
      @Override
      Hasher putBytes(byte[] bytes, int off, int len);
    
      @CanIgnoreReturnValue
      @Override
      Hasher putBytes(ByteBuffer bytes);
    
      @CanIgnoreReturnValue
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Jun 15 20:59:00 UTC 2022
    - 5.5K bytes
    - Viewed (0)
  8. platforms/core-runtime/base-services/src/test/groovy/org/gradle/internal/classloader/ConfigurableClassLoaderHierarchyHasherTest.groovy

            expect:
            hasher.getClassLoaderHash(runtimeLoader) == hashFor("system")
        }
    
        def "hashes unknown classloader"() {
            def unknownLoader = Mock(ClassLoader)
            expect:
            hasher.getClassLoaderHash(unknownLoader) == null
        }
    
        def "hashes hashed classloader"() {
            def hashedLoader = new DelegatingLoader(runtimeLoader)
            def hashedLoaderHash = TestHashCodes.hashCodeFrom(123456)
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 3K bytes
    - Viewed (0)
  9. guava/src/com/google/common/hash/Hasher.java

     */
    @Beta
    @ElementTypesAreNonnullByDefault
    public interface Hasher extends PrimitiveSink {
      @CanIgnoreReturnValue
      @Override
      Hasher putByte(byte b);
    
      @CanIgnoreReturnValue
      @Override
      Hasher putBytes(byte[] bytes);
    
      @CanIgnoreReturnValue
      @Override
      Hasher putBytes(byte[] bytes, int off, int len);
    
      @CanIgnoreReturnValue
      @Override
      Hasher putBytes(ByteBuffer bytes);
    
      @CanIgnoreReturnValue
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Jun 15 20:59:00 UTC 2022
    - 5.5K bytes
    - Viewed (0)
  10. src/hash/hash.go

    // Package hash provides interfaces for hash functions.
    package hash
    
    import "io"
    
    // Hash is the common interface implemented by all hash functions.
    //
    // Hash implementations in the standard library (e.g. [hash/crc32] and
    // [crypto/sha256]) implement the [encoding.BinaryMarshaler] and
    // [encoding.BinaryUnmarshaler] interfaces. Marshaling a hash implementation
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 13 19:15:34 UTC 2023
    - 2.1K bytes
    - Viewed (0)
Back to top