MCPcopy Index your code
hub / github.com/SocketCluster/socketcluster / checkInt

Function checkInt

app/public/socketcluster-client.js:3895–3899  ·  view source on GitHub ↗
(buf, value, offset, ext, max, min)

Source from the content-addressed store, hash-verified

3893}
3894
3895function checkInt (buf, value, offset, ext, max, min) {
3896 if (!Buffer.isBuffer(buf)) throw new TypeError('"buffer" argument must be a Buffer instance')
3897 if (value > max || value < min) throw new RangeError('"value" argument is out of bounds')
3898 if (offset + ext > buf.length) throw new RangeError('Index out of range')
3899}
3900
3901Buffer.prototype.writeUIntLE = function writeUIntLE (value, offset, byteLength, noAssert) {
3902 value = +value

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…