Function
checkInt
(buf, value, offset, ext, max, min)
Source from the content-addressed store, hash-verified
| 79625 | } |
| 79626 | |
| 79627 | function checkInt (buf, value, offset, ext, max, min) { |
| 79628 | if (!Buffer.isBuffer(buf)) throw new TypeError('"buffer" argument must be a Buffer instance') |
| 79629 | if (value > max || value < min) throw new RangeError('"value" argument is out of bounds') |
| 79630 | if (offset + ext > buf.length) throw new RangeError('Index out of range') |
| 79631 | } |
| 79632 | |
| 79633 | Buffer.prototype.writeUIntLE = function writeUIntLE (value, offset, byteLength, noAssert) { |
| 79634 | value = +value |
Tested by
no test coverage detected