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

Function ftruncateSync

lib/internal/vfs/setup.js:373–377  ·  view source on GitHub ↗
(fd, len)

Source from the content-addressed store, hash-verified

371 return undefined;
372 },
373 ftruncateSync(fd, len) {
374 const vfd = getVirtualFd(fd);
375 if (vfd) { vfd.entry.truncateSync(len); return true; }
376 return undefined;
377 },
378 fchmodSync: noopFdSync,
379 fchownSync: noopFdSync,
380 futimesSync: noopFdSync,

Callers

nothing calls this directly

Calls 2

getVirtualFdFunction · 0.85
truncateSyncMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…