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

Function hashTemporal

packages/db-ivm/src/hashing/hash.ts:130–136  ·  view source on GitHub ↗
(input: TemporalLike)

Source from the content-addressed store, hash-verified

128}
129
130function hashTemporal(input: TemporalLike): number {
131 const hasher = new MurmurHashStream()
132 hasher.update(TEMPORAL_MARKER)
133 hasher.update(input[Symbol.toStringTag])
134 hasher.update(input.toString())
135 return hasher.digest()
136}
137
138function hashPlainObject(input: object, marker: number): number {
139 const hasher = new MurmurHashStream()

Callers 1

hashObjectFunction · 0.85

Calls 3

updateMethod · 0.95
digestMethod · 0.95
toStringMethod · 0.45

Tested by

no test coverage detected