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

Function readUInt40LE

lib/internal/buffer.js:207–219  ·  view source on GitHub ↗
(buf, offset = 0)

Source from the content-addressed store, hash-verified

205}
206
207function readUInt40LE(buf, offset = 0) {
208 validateNumber(offset, 'offset');
209 const first = buf[offset];
210 const last = buf[offset + 4];
211 if (first === undefined || last === undefined)
212 boundsError(offset, buf.length - 5);
213
214 return first +
215 buf[++offset] * 2 ** 8 +
216 buf[++offset] * 2 ** 16 +
217 buf[++offset] * 2 ** 24 +
218 last * 2 ** 32;
219}
220
221function readUInt32LE(buf, offset = 0) {
222 validateNumber(offset, 'offset');

Callers 1

readUIntLEFunction · 0.85

Calls 1

boundsErrorFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…