MCPcopy
hub / github.com/stemkoski/stemkoski.github.com / _readDouble

Function _readDouble

MathBox/mathbox-core.js:1588–1595  ·  view source on GitHub ↗
(buf, offset, littleEndian, noAssert)

Source from the content-addressed store, hash-verified

1586}
1587
1588function _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
1597Buffer.prototype.readDoubleLE = function (offset, noAssert) {
1598 return _readDouble(this, offset, true, noAssert)

Callers 1

mathbox-core.jsFile · 0.70

Calls 1

assertFunction · 0.70

Tested by

no test coverage detected