MCPcopy Create free account
hub / github.com/bewcloud/bewcloud / checkInt

Function checkInt

lib/models/dav.js:3113–3117  ·  view source on GitHub ↗
(buf, value, offset, ext, max, min)

Source from the content-addressed store, hash-verified

3111};
3112
3113function checkInt (buf, value, offset, ext, max, min) {
3114 if (!internalIsBuffer(buf)) throw new TypeError('"buffer" argument must be a Buffer instance')
3115 if (value > max || value < min) throw new RangeError('"value" argument is out of bounds')
3116 if (offset + ext > buf.length) throw new RangeError('Index out of range')
3117}
3118
3119Buffer.prototype.writeUIntLE = function writeUIntLE (value, offset, byteLength, noAssert) {
3120 value = +value;

Callers 1

dav.jsFile · 0.85

Calls 1

internalIsBufferFunction · 0.85

Tested by

no test coverage detected