MCPcopy Create free account
hub / github.com/TanStack/db / digest

Method digest

packages/db-ivm/src/hashing/murmur.ts:121–138  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

119 }
120
121 digest(): number {
122 if (this.carryBytes > 0) {
123 let k1 = this.carry >>> 0
124 k1 = Math.imul(k1, 0xcc9e2d51)
125 k1 = (k1 << 15) | (k1 >>> 17)
126 k1 = Math.imul(k1, 0x1b873593)
127 this.hash ^= k1
128 }
129
130 this.hash ^= this.length
131 this.hash ^= this.hash >>> 16
132 this.hash = Math.imul(this.hash, 0x85ebca6b)
133 this.hash ^= this.hash >>> 13
134 this.hash = Math.imul(this.hash, 0xc2b2ae35)
135 this.hash ^= this.hash >>> 16
136
137 return this.hash >>> 0
138 }
139}

Callers 5

hashFunction · 0.95
hashDateFunction · 0.95
hashUint8ArrayFunction · 0.95
hashTemporalFunction · 0.95
hashPlainObjectFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected