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

Function readUInt32LE

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

Source from the content-addressed store, hash-verified

219}
220
221function readUInt32LE(buf, offset = 0) {
222 validateNumber(offset, 'offset');
223 const first = buf[offset];
224 const last = buf[offset + 3];
225 if (first === undefined || last === undefined)
226 boundsError(offset, buf.length - 4);
227
228 return first +
229 buf[++offset] * 2 ** 8 +
230 buf[++offset] * 2 ** 16 +
231 last * 2 ** 24;
232}
233
234function readUInt24LE(buf, offset = 0) {
235 validateNumber(offset, 'offset');

Callers 2

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…