Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 511 for hashss (0.12 sec)

  1. android/guava/src/com/google/common/hash/HashingInputStream.java

     */
    @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}.
       *
       * <p>The {@link InputStream} should not be read from before or after the hand-off.
       */
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Apr 20 18:43:59 UTC 2021
    - 3K bytes
    - Viewed (0)
  2. guava/src/com/google/common/hash/HashingInputStream.java

     */
    @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}.
       *
       * <p>The {@link InputStream} should not be read from before or after the hand-off.
       */
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Apr 20 18:43:59 UTC 2021
    - 3K bytes
    - Viewed (0)
  3. src/hash/maphash/maphash_test.go

    	h2 := new(Hash)
    	h2.SetSeed(h1.Seed())
    	h2.WriteString("foo")
    	y := h2.Sum64()
    	if x != y {
    		t.Errorf("hashes don't match: want %x, got %x", x, y)
    	}
    }
    
    // Make sure a Hash implements the hash.Hash and hash.Hash64 interfaces.
    var _ hash.Hash = &Hash{}
    var _ hash.Hash64 = &Hash{}
    
    func benchmarkSize(b *testing.B, size int) {
    	h := &Hash{}
    	buf := make([]byte, size)
    	s := string(buf)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 14 00:03:57 UTC 2023
    - 5.2K bytes
    - Viewed (0)
  4. guava/src/com/google/common/hash/HashingOutputStream.java

    @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}.
       *
       * <p>The {@link OutputStream} should not be written to before or after the hand-off.
       */
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Apr 20 18:43:59 UTC 2021
    - 2.6K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. platforms/jvm/normalization-java/src/main/java/org/gradle/api/internal/changedetection/state/FallbackHandlingResourceHasher.java

                .orElseGet(IoSupplier.wrap(() -> delegate.hash(snapshotContext)));
        }
    
        @Nullable
        @Override
        public HashCode hash(ZipEntryContext zipEntryContext) throws IOException {
            // If we should hash this resource and can fallback safely, attempt to hash the resource.
            // If we encounter an error, or the hasher elects not to handle the resource, hash with
            // the delegate using the fallback safe context.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 15:09:49 UTC 2023
    - 6K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/tools/go/types/typeutil/map.go

    }
    
    // MakeHasher returns a new Hasher instance.
    func MakeHasher() Hasher {
    	return Hasher{
    		memo:       make(map[types.Type]uint32),
    		ptrMap:     make(map[any]uint32),
    		sigTParams: nil,
    	}
    }
    
    // Hash computes a hash value for the given type t such that
    // Identical(t, t') => Hash(t) == Hash(t').
    func (h Hasher) Hash(t types.Type) uint32 {
    	hash, ok := h.memo[t]
    	if !ok {
    		hash = h.hashFor(t)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  9. src/runtime/hash32.go

    Russ Cox <******@****.***> 1629910106 -0400
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 1.6K bytes
    - Viewed (0)
  10. cmd/hasher.go

    	"encoding/hex"
    
    	"github.com/minio/minio/internal/hash/sha256"
    )
    
    // getSHA256Hash returns SHA-256 hash in hex encoding of given data.
    func getSHA256Hash(data []byte) string {
    	return hex.EncodeToString(getSHA256Sum(data))
    }
    
    // getSHA256Hash returns SHA-256 sum of given data.
    func getSHA256Sum(data []byte) []byte {
    	hash := sha256.New()
    	hash.Write(data)
    	return hash.Sum(nil)
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 27 13:00:19 UTC 2022
    - 1.4K bytes
    - Viewed (0)
Back to top