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

Function readUInt16BE

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

Source from the content-addressed store, hash-verified

331}
332
333function readUInt16BE(buf, offset = 0) {
334 validateNumber(offset, 'offset');
335 const first = buf[offset];
336 const last = buf[offset + 1];
337 if (first === undefined || last === undefined)
338 boundsError(offset, buf.length - 2);
339
340 return first * 2 ** 8 + last;
341}
342
343function readIntLE(offset, byteLength) {
344 if (offset === undefined)

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…