(buf, offset, littleEndian, noAssert)
| 1569 | } |
| 1570 | |
| 1571 | function _readFloat (buf, offset, littleEndian, noAssert) { |
| 1572 | if (!noAssert) { |
| 1573 | assert(typeof littleEndian === 'boolean', 'missing or invalid endian') |
| 1574 | assert(offset + 3 < buf.length, 'Trying to read beyond buffer length') |
| 1575 | } |
| 1576 | |
| 1577 | return ieee754.read(buf, offset, littleEndian, 23, 4) |
| 1578 | } |
| 1579 | |
| 1580 | Buffer.prototype.readFloatLE = function (offset, noAssert) { |
| 1581 | return _readFloat(this, offset, true, noAssert) |