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

Function readUInt24BE

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

Source from the content-addressed store, hash-verified

321}
322
323function readUInt24BE(buf, offset = 0) {
324 validateNumber(offset, 'offset');
325 const first = buf[offset];
326 const last = buf[offset + 2];
327 if (first === undefined || last === undefined)
328 boundsError(offset, buf.length - 3);
329
330 return first * 2 ** 16 + buf[++offset] * 2 ** 8 + last;
331}
332
333function readUInt16BE(buf, offset = 0) {
334 validateNumber(offset, 'offset');

Callers 1

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