MCPcopy Create free account
hub / github.com/awslabs/llrt / write

Function write

tests/unit/buffer.test.ts:428–431  ·  view source on GitHub ↗
(chunk, encoding, cb)

Source from the content-addressed store, hash-verified

426 const seen: string[] = [];
427 const w = new Writable({
428 write(chunk, encoding, cb) {
429 seen.push(`${chunk.toString()}|${encoding}`);
430 cb();
431 },
432 });
433 await new Promise<void>((resolve) => {
434 w.write("a");

Callers

nothing calls this directly

Calls 2

pushMethod · 0.80
toStringMethod · 0.65

Tested by

no test coverage detected