MCPcopy Index your code
hub / github.com/dataease/SQLBot / cachedHashString

Function cachedHashString

frontend/public/swagger-ui-bundle.js:2107–2114  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

2105 throw new Error('Value type ' + o + ' cannot be hashed.')
2106 }
2107 function cachedHashString(s) {
2108 var o = Pe[s]
2109 return (
2110 void 0 === o &&
2111 ((o = hashString(s)), xe === we && ((xe = 0), (Pe = {})), xe++, (Pe[s] = o)),
2112 o
2113 )
2114 }
2115 function hashString(s) {
2116 for (var o = 0, i = 0; i < s.length; i++) o = (31 * o + s.charCodeAt(i)) | 0
2117 return smi(o)

Callers 1

hashFunction · 0.85

Calls 1

hashStringFunction · 0.85

Tested by

no test coverage detected