MCPcopy Create free account
hub / github.com/Effect-TS/effect / update

Method update

packages/effect/src/encoding/Zip.ts:1162–1168  ·  view source on GitHub ↗
(chunks: ReadonlyArray<Uint8Array>)

Source from the content-addressed store, hash-verified

1160
1161 // Accounts for uncompressed body bytes
1162 update(chunks: ReadonlyArray<Uint8Array>): void {
1163 const { record } = this.current!
1164 for (const chunk of chunks) {
1165 record.crc = crc32(record.crc, chunk)
1166 record.size += chunk.length
1167 }
1168 }
1169
1170 // Writes stored or compressed body bytes
1171 data(chunks: ReadonlyArray<Uint8Array>): void {

Callers 1

encodeFunction · 0.95

Calls 1

crc32Function · 0.70

Tested by

no test coverage detected