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

Function getVirtualFd

lib/internal/vfs/fd.js:68–70  ·  view source on GitHub ↗

* Gets a VirtualFD by its file descriptor number. * @param {number} fd The file descriptor number * @returns {VirtualFD|undefined}

(fd)

Source from the content-addressed store, hash-verified

66 * @returns {VirtualFD|undefined}
67 */
68function getVirtualFd(fd) {
69 return openFDs.get(fd);
70}
71
72/**
73 * Closes a virtual file descriptor.

Callers 15

noopFdSyncFunction · 0.85
noopFdFunction · 0.85
readFileSyncFunction · 0.85
closeSyncFunction · 0.85
readSyncFunction · 0.85
writeSyncFunction · 0.85
fstatSyncFunction · 0.85
ftruncateSyncFunction · 0.85
readvSyncFunction · 0.85
writevSyncFunction · 0.85
closeFunction · 0.85
readFunction · 0.85

Calls 1

getMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…