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

Function fillBigIntStatsArray

lib/internal/vfs/stats.js:56–79  ·  view source on GitHub ↗

* Fills the bigint stats array with the given values. * @returns {Stats}

(
  dev, mode, nlink, uid, gid, rdev, blksize, ino,
  size, blocks, atime, mtime, ctime, birthtime,
)

Source from the content-addressed store, hash-verified

54 * @returns {Stats}
55 */
56function fillBigIntStatsArray(
57 dev, mode, nlink, uid, gid, rdev, blksize, ino,
58 size, blocks, atime, mtime, ctime, birthtime,
59) {
60 bigintStatsArray[0] = BigInt(dev);
61 bigintStatsArray[1] = BigInt(mode);
62 bigintStatsArray[2] = BigInt(nlink);
63 bigintStatsArray[3] = BigInt(uid);
64 bigintStatsArray[4] = BigInt(gid);
65 bigintStatsArray[5] = BigInt(rdev);
66 bigintStatsArray[6] = BigInt(blksize);
67 bigintStatsArray[7] = BigInt(ino);
68 bigintStatsArray[8] = BigInt(size);
69 bigintStatsArray[9] = BigInt(blocks);
70 bigintStatsArray[10] = BigInt(atime.sec);
71 bigintStatsArray[11] = BigInt(atime.nsec);
72 bigintStatsArray[12] = BigInt(mtime.sec);
73 bigintStatsArray[13] = BigInt(mtime.nsec);
74 bigintStatsArray[14] = BigInt(ctime.sec);
75 bigintStatsArray[15] = BigInt(ctime.nsec);
76 bigintStatsArray[16] = BigInt(birthtime.sec);
77 bigintStatsArray[17] = BigInt(birthtime.nsec);
78 return getStatsFromBinding(bigintStatsArray);
79}
80
81/**
82 * Creates a Stats object for a virtual file.

Callers 4

createFileStatsFunction · 0.85
createDirectoryStatsFunction · 0.85
createSymlinkStatsFunction · 0.85
createZeroStatsFunction · 0.85

Calls 1

getStatsFromBindingFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…