(offset, ext, length)
| 10784 | * Need to make sure that buffer isn't trying to write out of bounds. |
| 10785 | */ |
| 10786 | function checkOffset (offset, ext, length) { |
| 10787 | if ((offset % 1) !== 0 || offset < 0) throw new RangeError('offset is not uint') |
| 10788 | if (offset + ext > length) throw new RangeError('Trying to access beyond buffer length') |
| 10789 | } |
| 10790 | |
| 10791 | Buffer.prototype.readUIntLE = function readUIntLE (offset, byteLength, noAssert) { |
| 10792 | offset = offset | 0 |