Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,863 for hash4 (0.04 sec)

  1. platforms/jvm/normalization-java/src/test/groovy/org/gradle/api/internal/changedetection/state/PropertiesFileAwareClasspathResourceHasherTest.groovy

            def hash1 = unfilteredHasher.hash(propertiesEntry1)
            def hash2 = unfilteredHasher.hash(propertiesEntry2)
            def hash3 = filteredHasher.hash(propertiesEntry1)
            def hash4 = filteredHasher.hash(propertiesEntry2)
    
            expect:
            hash1 != hash2
            hash1 != hash3
            hash2 != hash4
    
            and:
            hash3 == hash4
    
            where:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 15.6K bytes
    - Viewed (0)
  2. platforms/jvm/normalization-java/src/test/groovy/org/gradle/api/internal/changedetection/state/MetaInfAwareClasspathResourceHasherTest.groovy

            def hash1 = unfilteredHasher.hash(manifestEntry1)
            def hash2 = unfilteredHasher.hash(manifestEntry2)
            def hash3 = hasher.hash(manifestEntry1)
            def hash4 = hasher.hash(manifestEntry2)
    
            then:
            hash1 != hash2
            hash3 != hash4
    
            and:
            hash1 == hash3
            hash2 == hash4
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 15:09:49 UTC 2023
    - 16.9K bytes
    - Viewed (0)
  3. src/compress/flate/deflate.go

    				for index++; index < newIndex; index++ {
    					if index < d.maxInsertIndex {
    						hash := hash4(d.window[index : index+minMatchLength])
    						// Get previous value with the same hash.
    						// Our chain should point to the previous value.
    						hh := &d.hashHead[hash&hashMask]
    						d.hashPrev[index&windowMask] = *hh
    						// Set the head of the hash chain to us.
    						*hh = uint32(index + d.hashOffset)
    					}
    				}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 13:32:40 UTC 2024
    - 20.3K bytes
    - Viewed (0)
  4. src/compress/flate/deflate_test.go

    			y := y[:j]
    			dst := make([]uint32, len(y)-minMatchLength+1)
    			for i := range dst {
    				dst[i] = uint32(i + 100)
    			}
    			bulkHash4(y, dst)
    			for i, got := range dst {
    				want := hash4(y[i:])
    				if got != want && got == uint32(i)+100 {
    					t.Errorf("Len:%d Index:%d, want 0x%08x but not modified", len(y), i, want)
    				} else if got != want {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 14 00:03:57 UTC 2023
    - 25.6K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/mod/sumdb/dirhash/hash.go

    	"sort"
    	"strings"
    )
    
    // DefaultHash is the default hash function used in new go.sum entries.
    var DefaultHash Hash = Hash1
    
    // A Hash is a directory hash function.
    // It accepts a list of files along with a function that opens the content of each file.
    // It opens, reads, hashes, and closes each file and returns the overall directory hash.
    type Hash func(files []string, open func(string) (io.ReadCloser, error)) (string, error)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 10 18:59:52 UTC 2023
    - 4K bytes
    - Viewed (0)
  6. 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)
  7. pkg/util/hash/hash_test.go

    		}
    
    		if hash1 != hash3 {
    			t.Errorf("hash1 (%d) and hash3(%d) must be the same because although they point to different objects, they have the same values for wheel size", hash1, hash3)
    		}
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 27 01:24:22 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/hash/BloomFilterStrategies.java

            LockFreeBitArray bits) {
          long bitSize = bits.bitSize();
          long hash64 = Hashing.murmur3_128().hashObject(object, funnel).asLong();
          int hash1 = (int) hash64;
          int hash2 = (int) (hash64 >>> 32);
    
          for (int i = 1; i <= numHashFunctions; i++) {
            int combinedHash = hash1 + (i * hash2);
            // Flip all the bits if it's negative (guaranteed positive number)
            if (combinedHash < 0) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Oct 10 19:45:10 UTC 2022
    - 10.7K bytes
    - Viewed (0)
  9. platforms/core-execution/hashing/src/test/groovy/org/gradle/internal/hash/HashingTest.groovy

            then:
            hash2 == hash1
        }
    
        def 'hasher works without calling final hash method'() {
            given:
            def value = ('a'..'z').join()
    
            when:
            def hasher1 = Hashing.newHasher()
            hasher1.putString(value)
            def hash = hasher1.hash()
    
            and:
            def hasher2 = Hashing.newHasher()
            hasher2.putString(value)
            // no call to hasher2.hash()
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:43:29 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  10. src/cmd/go/internal/cache/hash.go

    	}
    	h.Write(hashSalt)
    	if verify {
    		h.buf = new(bytes.Buffer)
    	}
    	return h
    }
    
    // Write writes data to the running hash.
    func (h *Hash) Write(b []byte) (int, error) {
    	if debugHash {
    		fmt.Fprintf(os.Stderr, "HASH[%s]: %q\n", h.name, b)
    	}
    	if h.buf != nil {
    		h.buf.Write(b)
    	}
    	return h.h.Write(b)
    }
    
    // Sum returns the hash of the data written previously.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 14 16:18:34 UTC 2021
    - 4.9K bytes
    - Viewed (0)
Back to top