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

Function read

lib/internal/vfs/setup.js:417–422  ·  view source on GitHub ↗
(fd, buffer, offset, length, position)

Source from the content-addressed store, hash-verified

415 return vfd.entry.close().then(() => { closeVirtualFd(fd); return true; });
416 },
417 read(fd, buffer, offset, length, position) {
418 const vfd = getVirtualFd(fd);
419 if (!vfd) return undefined;
420 return vfd.entry.read(buffer, offset, length, position)
421 .then(({ bytesRead }) => bytesRead);
422 },
423 write(fd, buffer, offset, length, position) {
424 const vfd = getVirtualFd(fd);
425 if (!vfd) return undefined;

Callers

nothing calls this directly

Calls 3

getVirtualFdFunction · 0.85
thenMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…