(offset, ext, length)
| 1123 | * Need to make sure that buffer isn't trying to write out of bounds. |
| 1124 | */ |
| 1125 | function checkOffset (offset, ext, length) { |
| 1126 | if ((offset % 1) !== 0 || offset < 0) throw new RangeError('offset is not uint') |
| 1127 | if (offset + ext > length) throw new RangeError('Trying to access beyond buffer length') |
| 1128 | } |
| 1129 | |
| 1130 | Buffer.prototype.readUintLE = |
| 1131 | Buffer.prototype.readUIntLE = function readUIntLE (offset, byteLength, noAssert) { |
no outgoing calls
no test coverage detected
searching dependent graphs…