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

Method end

packages/effect/src/encoding/Zip.ts:1188–1196  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1186 }
1187
1188 end(): void {
1189 const { descriptor, header, record } = this.current!
1190 this.current = undefined
1191 if (header.size !== undefined && record.size !== header.size) {
1192 throw sizeMismatch(header.path, record.size, header.size)
1193 }
1194 if (descriptor) this.push(dataDescriptor(record))
1195 this.records.push(record)
1196 }
1197
1198 finish(): void {
1199 const start = this.offset

Callers 1

encodeFunction · 0.95

Calls 4

pushMethod · 0.95
dataDescriptorFunction · 0.85
sizeMismatchFunction · 0.70
pushMethod · 0.65

Tested by

no test coverage detected