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

Method flush

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

Source from the content-addressed store, hash-verified

1402 }
1403
1404 flush(): Arr.NonEmptyArray<Uint8Array> {
1405 this.cut()
1406 const chunks = this.chunks as Arr.NonEmptyArray<Uint8Array>
1407 this.chunks = []
1408 this.buffered = 0
1409 return chunks
1410 }
1411
1412 // Ends the current run of slab bytes as a chunk
1413 private cut(): void {

Callers 1

encodeFunction · 0.95

Calls 1

cutMethod · 0.95

Tested by

no test coverage detected