- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for HashStr (0.15 sec)
-
src/main/webapp/js/search.js
if (hashIndex >= 0) { hashStr = url.substring(hashIndex); buf.push("&hash="); buf.push(encodeURIComponent(hashStr)); buf.push(hashStr); } }); $result.on("click", "a.favorite", function(e) { var $favorite = $(this), values = $favorite.attr("href").split("#"), actionUrl, docId; if (values.length === 2 && $queryId.length > 0) { docId = values[1];
Registered: Wed Jun 12 13:08:18 UTC 2024 - Last Modified: Thu Mar 30 05:45:24 UTC 2023 - 7.5K bytes - Viewed (0) -
src/internal/bytealg/bytealg.go
// If MaxLen is not 0, make sure MaxLen >= 4. 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]) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 19 19:51:15 UTC 2024 - 3.1K bytes - Viewed (0) -
cmd/storage-rest-server.go
s.writeErrorResponse(w, errInvalidArgument) return } var verifier *BitrotVerifier if r.Form.Get(storageRESTBitrotAlgo) != "" { hashStr := r.Form.Get(storageRESTBitrotHash) var hash []byte hash, err = hex.DecodeString(hashStr) if err != nil { s.writeErrorResponse(w, err) return } verifier = NewBitrotVerifier(BitrotAlgorithmFromString(r.Form.Get(storageRESTBitrotAlgo)), hash)
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon Jun 10 15:51:27 UTC 2024 - 44.8K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/types/typeutil/map.go
if i >= 0 && i < h.sigTParams.Len() && t == h.sigTParams.At(i) { return 9173 + 3*uint32(i) } } return h.hashPtr(t.Obj()) } // hashPtr hashes the pointer identity of ptr. It uses h.ptrMap to ensure that // pointers values are not dependent on the GC. func (h Hasher) hashPtr(ptr any) uint32 { if hash, ok := h.ptrMap[ptr]; ok { return hash } hash := uint32(reflect.ValueOf(ptr).Pointer())
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 02:38:00 UTC 2024 - 13.9K bytes - Viewed (0)