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

Function write

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

Source from the content-addressed store, hash-verified

421 .then(({ bytesRead }) => bytesRead);
422 },
423 write(fd, buffer, offset, length, position) {
424 const vfd = getVirtualFd(fd);
425 if (!vfd) return undefined;
426 return vfd.entry.write(buffer, offset, length, position)
427 .then(({ bytesWritten }) => bytesWritten);
428 },
429 fstat(fd, options) {
430 const vfd = getVirtualFd(fd);
431 if (!vfd) return undefined;

Callers

nothing calls this directly

Calls 3

getVirtualFdFunction · 0.85
thenMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…