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

Function readUInt24LE

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

Source from the content-addressed store, hash-verified

232}
233
234function readUInt24LE(buf, offset = 0) {
235 validateNumber(offset, 'offset');
236 const first = buf[offset];
237 const last = buf[offset + 2];
238 if (first === undefined || last === undefined)
239 boundsError(offset, buf.length - 3);
240
241 return first + buf[++offset] * 2 ** 8 + last * 2 ** 16;
242}
243
244function readUInt16LE(buf, offset = 0) {
245 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…