MCPcopy Create free account
hub / github.com/TanStack/ai / crc32

Function crc32

examples/ts-react-chat/scripts/make-repro-image.mjs:85–90  ·  view source on GitHub ↗
(buf)

Source from the content-addressed store, hash-verified

83 return t
84})()
85function crc32(buf) {
86 let c = 0xffffffff
87 for (let i = 0; i < buf.length; i++)
88 c = crcTable[(c ^ buf[i]) & 0xff] ^ (c >>> 8)
89 return (c ^ 0xffffffff) >>> 0
90}
91
92function chunk(type, data) {
93 const typeBuf = Buffer.from(type, 'ascii')

Callers 1

chunkFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected