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

Method finish

packages/effect/src/encoding/Tar.ts:1286–1294  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1284 }
1285
1286 private finish(): undefined | typeof NeedInput {
1287 // An extended header must be followed by the entry it describes
1288 if (!this.finished && (this.pax !== undefined || this.longName !== "" || this.longLink !== "")) {
1289 throw truncated(this.queue.consumed)
1290 }
1291 this.finished = true
1292 this.queue.clear()
1293 return this.ended ? undefined : NeedInput
1294 }
1295
1296 // Global records apply to every entry that follows, except the ones that only
1297 // describe a single entry, and an empty value removes a record

Callers 1

advanceMethod · 0.95

Calls 2

truncatedFunction · 0.70
clearMethod · 0.65

Tested by

no test coverage detected