(buf, offset, littleEndian, noAssert)
| 1586 | } |
| 1587 | |
| 1588 | function _readDouble (buf, offset, littleEndian, noAssert) { |
| 1589 | if (!noAssert) { |
| 1590 | assert(typeof littleEndian === 'boolean', 'missing or invalid endian') |
| 1591 | assert(offset + 7 < buf.length, 'Trying to read beyond buffer length') |
| 1592 | } |
| 1593 | |
| 1594 | return ieee754.read(buf, offset, littleEndian, 52, 8) |
| 1595 | } |
| 1596 | |
| 1597 | Buffer.prototype.readDoubleLE = function (offset, noAssert) { |
| 1598 | return _readDouble(this, offset, true, noAssert) |