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

Function readUIntLE

lib/internal/buffer.js:174–191  ·  view source on GitHub ↗
(offset, byteLength)

Source from the content-addressed store, hash-verified

172}
173
174function readUIntLE(offset, byteLength) {
175 if (offset === undefined)
176 throw new ERR_INVALID_ARG_TYPE('offset', 'number', offset);
177 if (byteLength === 6)
178 return readUInt48LE(this, offset);
179 if (byteLength === 5)
180 return readUInt40LE(this, offset);
181 if (byteLength === 3)
182 return readUInt24LE(this, offset);
183 if (byteLength === 4)
184 return readUInt32LE(this, offset);
185 if (byteLength === 2)
186 return readUInt16LE(this, offset);
187 if (byteLength === 1)
188 return readUInt8(this, offset);
189
190 boundsError(byteLength, 6, 'byteLength');
191}
192
193function readUInt48LE(buf, offset = 0) {
194 validateNumber(offset, 'offset');

Callers

nothing calls this directly

Calls 7

readUInt48LEFunction · 0.85
readUInt40LEFunction · 0.85
readUInt24LEFunction · 0.85
readUInt32LEFunction · 0.85
readUInt16LEFunction · 0.85
readUInt8Function · 0.85
boundsErrorFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…