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

Method cut

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

Source from the content-addressed store, hash-verified

1411
1412 // Ends the current run of slab bytes as a chunk
1413 private cut(): void {
1414 if (this.offset > this.start) {
1415 this.chunks.push(this.slab.subarray(this.start, this.offset))
1416 this.start = this.offset
1417 }
1418 }
1419
1420 // Returns `size` zeroed bytes of the output
1421 private alloc = (size: number): Uint8Array => {

Callers 5

bodyMethod · 0.95
flushMethod · 0.95
reserveMethod · 0.95
adapter.tsFile · 0.80
cutSocketFunction · 0.80

Calls 1

pushMethod · 0.65

Tested by

no test coverage detected