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

Function hashDate

packages/db-ivm/src/hashing/hash.ts:111–116  ·  view source on GitHub ↗
(input: Date)

Source from the content-addressed store, hash-verified

109}
110
111function hashDate(input: Date): number {
112 const hasher = new MurmurHashStream()
113 hasher.update(DATE_MARKER)
114 hasher.update(input.getTime())
115 return hasher.digest()
116}
117
118function hashUint8Array(input: Uint8Array): number {
119 const hasher = new MurmurHashStream()

Callers 1

hashObjectFunction · 0.85

Calls 2

updateMethod · 0.95
digestMethod · 0.95

Tested by

no test coverage detected