Function
checkInt
(buf, value, offset, ext, max, min)
Source from the content-addressed store, hash-verified
| 10945 | } |
| 10946 | |
| 10947 | function checkInt (buf, value, offset, ext, max, min) { |
| 10948 | if (!Buffer.isBuffer(buf)) throw new TypeError('"buffer" argument must be a Buffer instance') |
| 10949 | if (value > max || value < min) throw new RangeError('"value" argument is out of bounds') |
| 10950 | if (offset + ext > buf.length) throw new RangeError('Index out of range') |
| 10951 | } |
| 10952 | |
| 10953 | Buffer.prototype.writeUIntLE = function writeUIntLE (value, offset, byteLength, noAssert) { |
| 10954 | value = +value |
Tested by
no test coverage detected