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

Function readUInt32BE

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

Source from the content-addressed store, hash-verified

308}
309
310function readUInt32BE(buf, offset = 0) {
311 validateNumber(offset, 'offset');
312 const first = buf[offset];
313 const last = buf[offset + 3];
314 if (first === undefined || last === undefined)
315 boundsError(offset, buf.length - 4);
316
317 return first * 2 ** 24 +
318 buf[++offset] * 2 ** 16 +
319 buf[++offset] * 2 ** 8 +
320 last;
321}
322
323function readUInt24BE(buf, offset = 0) {
324 validateNumber(offset, 'offset');

Callers 3

readUIntBEFunction · 0.85
getUnpackedSettingsFunction · 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…