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

Function readUIntBE

lib/internal/buffer.js:263–280  ·  view source on GitHub ↗
(offset, byteLength)

Source from the content-addressed store, hash-verified

261}
262
263function readUIntBE(offset, byteLength) {
264 if (offset === undefined)
265 throw new ERR_INVALID_ARG_TYPE('offset', 'number', offset);
266 if (byteLength === 6)
267 return readUInt48BE(this, offset);
268 if (byteLength === 5)
269 return readUInt40BE(this, offset);
270 if (byteLength === 3)
271 return readUInt24BE(this, offset);
272 if (byteLength === 4)
273 return readUInt32BE(this, offset);
274 if (byteLength === 2)
275 return readUInt16BE(this, offset);
276 if (byteLength === 1)
277 return readUInt8(this, offset);
278
279 boundsError(byteLength, 6, 'byteLength');
280}
281
282function readUInt48BE(buf, offset = 0) {
283 validateNumber(offset, 'offset');

Callers

nothing calls this directly

Calls 7

readUInt48BEFunction · 0.85
readUInt40BEFunction · 0.85
readUInt24BEFunction · 0.85
readUInt32BEFunction · 0.85
readUInt16BEFunction · 0.85
readUInt8Function · 0.85
boundsErrorFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…