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

Function writeUIntLE

lib/internal/buffer.js:646–661  ·  view source on GitHub ↗
(value, offset, byteLength)

Source from the content-addressed store, hash-verified

644}
645
646function writeUIntLE(value, offset, byteLength) {
647 if (byteLength === 6)
648 return writeU_Int48LE(this, value, offset, 0, 0xffffffffffff);
649 if (byteLength === 5)
650 return writeU_Int40LE(this, value, offset, 0, 0xffffffffff);
651 if (byteLength === 3)
652 return writeU_Int24LE(this, value, offset, 0, 0xffffff);
653 if (byteLength === 4)
654 return writeU_Int32LE(this, value, offset, 0, 0xffffffff);
655 if (byteLength === 2)
656 return writeU_Int16LE(this, value, offset, 0, 0xffff);
657 if (byteLength === 1)
658 return writeU_Int8(this, value, offset, 0, 0xff);
659
660 boundsError(byteLength, 6, 'byteLength');
661}
662
663function writeU_Int48LE(buf, value, offset, min, max) {
664 value = +value;

Callers

nothing calls this directly

Calls 7

writeU_Int48LEFunction · 0.85
writeU_Int40LEFunction · 0.85
writeU_Int24LEFunction · 0.85
writeU_Int32LEFunction · 0.85
writeU_Int16LEFunction · 0.85
writeU_Int8Function · 0.85
boundsErrorFunction · 0.85

Tested by

no test coverage detected