Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,417 for hashv (0.07 sec)

  1. src/cmd/compile/internal/coverage/cover.go

    		}
    		hv[i] = byte(x)
    	}
    
    	// Return hash and meta-data len
    	return hv, base.Flag.Cfg.CoverageInfo.MetaLen
    }
    
    func registerMeta(cnames names, hashv [16]byte, mdlen int) {
    	// Materialize expression for hash (an array literal)
    	pos := cnames.InitFn.Pos()
    	elist := make([]ir.Node, 0, 16)
    	for i := 0; i < 16; i++ {
    		elem := ir.NewInt(base.Pos, int64(hashv[i]))
    		elist = append(elist, elem)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 29 21:55:46 UTC 2024
    - 6K bytes
    - Viewed (0)
  2. 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
            hash2 != hash4
            hash3 != hash4
            hash1 != hash3
    
            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)
  3. 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)
  4. 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)
  5. 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)
  6. pkg/util/hash/hash.go

    // limitations under the License.
    
    package hash
    
    import (
    	"encoding/hex"
    
    	"github.com/cespare/xxhash/v2"
    )
    
    type Hash interface {
    	Write(p []byte) (n int)
    	WriteString(s string) (n int)
    	Sum() string
    	Sum64() uint64
    }
    
    type instance struct {
    	hash *xxhash.Digest
    }
    
    var _ Hash = &instance{}
    
    func New() Hash {
    	return &instance{
    		hash: xxhash.New(),
    	}
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Dec 21 20:24:14 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  7. platforms/jvm/normalization-java/src/test/groovy/org/gradle/api/internal/changedetection/state/ZipHasherTest.groovy

            def jarfile2 = tmpDir.file("test2.jar")
            createJarWithAttributes(jarfile2, ["Implementation-Version": "1.0.1"])
    
            def hash1 = zipHasher.hash(snapshotContext(jarfile))
            def hash2 = zipHasher.hash(snapshotContext(jarfile2))
    
            expect:
            hash1 != hash2
        }
    
        def "manifest attributes are ignored"() {
            given:
            def jarfile = tmpDir.file("test.jar")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 15:09:49 UTC 2023
    - 7.2K bytes
    - Viewed (0)
  8. platforms/core-execution/hashing/src/test/groovy/org/gradle/internal/hash/HashCodeTest.groovy

        }
    
        def "#a == #b: #equals"() {
            def hashA = HashCode.fromString(a)
            def hashB = HashCode.fromString(b)
    
            expect:
            (hashA == hashB) == equals
            (hashB == hashA) == equals
    
            where:
            a                                  | b                                  | equals
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:43:29 UTC 2023
    - 8.2K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/hash/HashCodeTest.java

          }
        } else {
          assertEquals(expectedHashCode.asLong.longValue(), hash.asLong());
        }
        assertEquals(expectedHashCode.toString, hash.toString());
        assertSideEffectFree(hash);
        assertReadableBytes(hash);
      }
    
      private static void assertSideEffectFree(HashCode hash) {
        byte[] original = hash.asBytes();
        byte[] mutated = hash.asBytes();
        mutated[0]++;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 13.1K bytes
    - Viewed (0)
  10. cmd/kubeadm/app/util/staticpod/utils.go

    	})
    	return usersAndGroups, err
    }
    
    // DeepHashObject writes specified object to hash using the spew library
    // which follows pointers and prints actual values of the nested objects
    // ensuring the hash does not change when a pointer changes.
    // Copied from k8s.io/kubernetes/pkg/util/hash/hash.go#DeepHashObject
    func DeepHashObject(hasher hash.Hash, objectToWrite interface{}) {
    	hasher.Reset()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Jan 14 13:07:56 UTC 2024
    - 14.1K bytes
    - Viewed (0)
Back to top