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

Function boundsError

lib/internal/buffer.js:83–95  ·  view source on GitHub ↗
(value, length, type)

Source from the content-addressed store, hash-verified

81}
82
83function boundsError(value, length, type) {
84 if (MathFloor(value) !== value) {
85 validateNumber(value, type);
86 throw new ERR_OUT_OF_RANGE(type || 'offset', 'an integer', value);
87 }
88
89 if (length < 0)
90 throw new ERR_BUFFER_OUT_OF_BOUNDS();
91
92 throw new ERR_OUT_OF_RANGE(type || 'offset',
93 `>= ${type ? 1 : 0} and <= ${length}`,
94 value);
95}
96
97// Read integers.
98function readBigUInt64LE(offset = 0) {

Callers 15

checkBoundsFunction · 0.85
readBigUInt64LEFunction · 0.85
readBigUInt64BEFunction · 0.85
readBigInt64LEFunction · 0.85
readBigInt64BEFunction · 0.85
readUIntLEFunction · 0.85
readUInt48LEFunction · 0.85
readUInt40LEFunction · 0.85
readUInt32LEFunction · 0.85
readUInt24LEFunction · 0.85
readUInt16LEFunction · 0.85
readUInt8Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…