Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 1,145 for hasNet (0.18 sec)

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

     *
     * @author Nick Piepmeier
     * @since 16.0
     */
    @Beta
    @ElementTypesAreNonnullByDefault
    public final class HashingOutputStream extends FilterOutputStream {
      private final Hasher hasher;
    
      /**
       * Creates an output stream that hashes using the given {@link HashFunction}, and forwards all
       * data written to it to the underlying {@link OutputStream}.
       *
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Apr 20 18:43:59 UTC 2021
    - 2.6K bytes
    - Viewed (0)
  2. platforms/jvm/normalization-java/src/main/java/org/gradle/api/internal/changedetection/state/RuntimeClasspathResourceHasher.java

            return zipEntryContext.getEntry().withInputStream(Hashing::hashStream);
        }
    
        @Override
        public void appendConfigurationToHasher(Hasher hasher) {
            hasher.putString(getClass().getName());
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 15:09:49 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  3. platforms/core-runtime/serialization/src/test/groovy/org/gradle/internal/serialize/SetSerializerTest.groovy

            serialize(["one", null, "three"] as Set, serializer) as List == ["one", null, "three"]
        }
    
        def "serializes with HasSet"() {
            when:
            def serializer = new SetSerializer(stringSerializer, false)
    
            then:
            serialize(['1', '2'] as Set, serializer) instanceof HashSet
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 15 16:06:56 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/hash/HashingInputStream.java

     *
     * @author Qian Huang
     * @since 16.0
     */
    @Beta
    @ElementTypesAreNonnullByDefault
    public final class HashingInputStream extends FilterInputStream {
      private final Hasher hasher;
    
      /**
       * Creates an input stream that hashes using the given {@link HashFunction} and delegates all data
       * read from it to the underlying {@link InputStream}.
       *
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Apr 20 18:43:59 UTC 2021
    - 3K bytes
    - Viewed (0)
  5. platforms/core-execution/snapshots/src/main/java/org/gradle/internal/fingerprint/impl/DefaultCurrentFileCollectionFingerprint.java

            this.rootHashes = rootHashes;
        }
    
        @Override
        public HashCode getHash() {
            if (hash == null) {
                Hasher hasher = Hashing.newHasher();
                hashingStrategy.appendToHasher(hasher, fingerprints.values());
                hash = hasher.hash();
            }
            return hash;
        }
    
        @Override
        public boolean isEmpty() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:34:50 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/hash/HashingOutputStream.java

     *
     * @author Nick Piepmeier
     * @since 16.0
     */
    @Beta
    @ElementTypesAreNonnullByDefault
    public final class HashingOutputStream extends FilterOutputStream {
      private final Hasher hasher;
    
      /**
       * Creates an output stream that hashes using the given {@link HashFunction}, and forwards all
       * data written to it to the underlying {@link OutputStream}.
       *
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Apr 20 18:43:59 UTC 2021
    - 2.6K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/tools/go/types/typeutil/map.go

    // Map.Lookup require updates to the hasher, so a full Mutex lock (not a
    // read-lock) is require around all Map operations if a shared
    // hasher is accessed from multiple threads.
    //
    // If SetHasher is not called, the Map will create a private hasher at
    // the first call to Insert.
    func (m *Map) SetHasher(hasher Hasher) {
    	m.hasher = hasher
    }
    
    // Delete removes the entry with the given key, if any.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  8. platforms/core-execution/snapshots/src/main/java/org/gradle/internal/snapshot/MerkleDirectorySnapshotBuilder.java

                }
                Hasher hasher = Hashing.newHasher();
                hasher.putHash(DIR_SIGNATURE);
                for (FileSystemLocationSnapshot child : children) {
                    hasher.putString(child.getName());
                    hasher.putHash(child.getHash());
                }
                return new DirectorySnapshot(absolutePath, name, accessType, hasher.hash(), children);
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:34:50 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  9. src/runtime/hash_test.go

    				}
    			}
    		}
    	}
    }
    
    type HashSet struct {
    	list []uintptr // list of hashes added
    }
    
    func newHashSet() *HashSet {
    	return &HashSet{list: make([]uintptr, 0, 1024)}
    }
    func (s *HashSet) add(h uintptr) {
    	s.list = append(s.list, h)
    }
    func (s *HashSet) addS(x string) {
    	s.add(StringHash(x, 0))
    }
    func (s *HashSet) addB(x []byte) {
    	s.add(BytesHash(x, 0))
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 06 17:50:18 UTC 2024
    - 18.4K bytes
    - Viewed (0)
  10. platforms/core-execution/hashing/src/main/java/org/gradle/internal/hash/HashCode.java

     * <h3>Memory considerations</h3>
     * <p>
     * Hashes by default are stored in {@link ByteArrayBackedHashCode a byte array}.
     * For a 128-bit hash this results in 64 bytes of memory used for each {@code HashCode}.
     * This implementation also requires GC to track two separate objects (the {@code HashCode} object and its {@code byte[]}).
     * <p>
     * Because Gradle uses a lot of MD5 hashes, for 128-bit hashes we have a more efficient implementation.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Dec 14 19:25:07 UTC 2023
    - 10.9K bytes
    - Viewed (0)
Back to top