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

Function writeU_Int40LE

lib/internal/buffer.js:680–694  ·  view source on GitHub ↗
(buf, value, offset, min, max)

Source from the content-addressed store, hash-verified

678}
679
680function writeU_Int40LE(buf, value, offset, min, max) {
681 value = +value;
682 checkInt(value, min, max, buf, offset, 4);
683
684 const newVal = value;
685 buf[offset++] = value;
686 value = value >>> 8;
687 buf[offset++] = value;
688 value = value >>> 8;
689 buf[offset++] = value;
690 value = value >>> 8;
691 buf[offset++] = value;
692 buf[offset++] = MathFloor(newVal * 2 ** -32);
693 return offset;
694}
695
696function writeU_Int32LE(buf, value, offset, min, max) {
697 value = +value;

Callers 2

writeUIntLEFunction · 0.85
writeIntLEFunction · 0.85

Calls 1

checkIntFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…