MCPcopy Index your code
hub / github.com/nodejs/node / pull

Method pull

lib/internal/fs/promises.js:364–374  ·  view source on GitHub ↗
(controller)

Source from the content-addressed store, hash-verified

362 autoAllocateChunkSize: 16384,
363
364 async pull(controller) {
365 const view = controller.byobRequest.view;
366 const { bytesRead } = await readFn(view, view.byteOffset, view.byteLength);
367
368 if (bytesRead === 0) {
369 controller.close();
370 await ondone();
371 }
372
373 controller.byobRequest.respond(bytesRead);
374 },
375
376 async cancel() {
377 await ondone();

Callers 7

readNextFunction · 0.45
createBlobReaderIterableFunction · 0.45
mainFunction · 0.45
runFunction · 0.45
runPullFunction · 0.45
pullFunction · 0.45
pullFunction · 0.45

Calls 2

closeMethod · 0.65
respondMethod · 0.45

Tested by

no test coverage detected