MCPcopy
hub / github.com/feross/buffer / checkInt

Function checkInt

index.js:1393–1397  ·  view source on GitHub ↗
(buf, value, offset, ext, max, min)

Source from the content-addressed store, hash-verified

1391}
1392
1393function checkInt (buf, value, offset, ext, max, min) {
1394 if (!Buffer.isBuffer(buf)) throw new TypeError('"buffer" argument must be a Buffer instance')
1395 if (value > max || value < min) throw new RangeError('"value" argument is out of bounds')
1396 if (offset + ext > buf.length) throw new RangeError('Index out of range')
1397}
1398
1399Buffer.prototype.writeUintLE =
1400Buffer.prototype.writeUIntLE = function writeUIntLE (value, offset, byteLength, noAssert) {

Callers 1

index.jsFile · 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…