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

Function read

packages/platform/node-shared/benchmark/Socket.ts:97–97  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

95const loopbackDuplex = (respond: (chunk: Buffer, push: (data: Uint8Array) => void) => void): Duplex => {
96 const duplex: Duplex = new Duplex({
97 read() {},
98 write(chunk: Buffer, _encoding, callback) {
99 respond(chunk, (data) => {
100 duplex.push(data)

Callers 1

readAllocMethod · 0.50

Calls 1

resolveMethod · 0.80

Tested by

no test coverage detected