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

Method writeByte

packages/db-ivm/src/hashing/murmur.ts:54–64  ·  view source on GitHub ↗
(byte: number)

Source from the content-addressed store, hash-verified

52 }
53
54 writeByte(byte: number): void {
55 this.carry |= (byte & 0xff) << (8 * this.carryBytes)
56 this.carryBytes++
57 this.length++
58
59 if (this.carryBytes === 4) {
60 this._mix(this.carry >>> 0)
61 this.carry = 0
62 this.carryBytes = 0
63 }
64 }
65
66 update(chunk: symbol | string | number | bigint): void {
67 switch (typeof chunk) {

Callers 2

hashUint8ArrayFunction · 0.95
updateMethod · 0.95

Calls 1

_mixMethod · 0.95

Tested by

no test coverage detected