- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 511 for hashss (0.16 sec)
-
src/internal/bytealg/bytealg.go
var MaxLen int // PrimeRK is the prime base used in Rabin-Karp algorithm. const PrimeRK = 16777619 // HashStr returns the hash and the appropriate multiplicative // factor for use in Rabin-Karp algorithm. func HashStr[T string | []byte](sep T) (uint32, uint32) { hash := uint32(0) for i := 0; i < len(sep); i++ { hash = hash*PrimeRK + uint32(sep[i]) } var pow, sq uint32 = 1, PrimeRK for i := len(sep); i > 0; i >>= 1 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 19 19:51:15 UTC 2024 - 3.1K bytes - Viewed (0) -
src/strings/strings.go
hashss, pow := bytealg.HashStrRev(substr) last := len(s) - n var h uint32 for i := len(s) - 1; i >= last; i-- { h = h*bytealg.PrimeRK + uint32(s[i]) } if h == hashss && s[last:] == substr { return last } for i := last - 1; i >= 0; i-- { h *= bytealg.PrimeRK h += uint32(s[i]) h -= pow * uint32(s[i+n]) if h == hashss && s[i:i+n] == substr { return i }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 16:48:16 UTC 2024 - 31.2K bytes - Viewed (0) -
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) -
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) -
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) -
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) -
platforms/core-execution/hashing/src/main/java/org/gradle/internal/hash/Hasher.java
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Jan 11 11:14:18 UTC 2024 - 2.2K bytes - Viewed (0) -
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) -
pkg/util/hash/hash_test.go
if hash1a != hash1 { t.Errorf("repeated hash of the same object (%q) produced different results: %d vs %d", toString(tc()), hash1, hash1a) } if hash2a != hash2 { t.Errorf("repeated hash of the same object (%q) produced different results: %d vs %d", toString(tc()), hash2, hash2a) } if hash1a != hash2a { t.Errorf("hash of the same object produced (%q) different results: %d vs %d", toString(tc()), hash1a, hash2a) } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Mar 27 01:24:22 UTC 2023 - 4.4K bytes - Viewed (0) -
pkg/util/hash/hash.go
limitations under the License. */ package hash import ( "fmt" "hash" "k8s.io/apimachinery/pkg/util/dump" ) // 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. func DeepHashObject(hasher hash.Hash, objectToWrite interface{}) { hasher.Reset()
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Mar 27 01:24:22 UTC 2023 - 998 bytes - Viewed (0)