MCPcopy Index your code
hub / github.com/stemkoski/stemkoski.github.com / _readDouble

Function _readDouble

MathBox/mathbox-bundle.js:48273–48280  ·  view source on GitHub ↗
(buf, offset, littleEndian, noAssert)

Source from the content-addressed store, hash-verified

48271}
48272
48273function _readDouble (buf, offset, littleEndian, noAssert) {
48274 if (!noAssert) {
48275 assert(typeof littleEndian === 'boolean', 'missing or invalid endian')
48276 assert(offset + 7 < buf.length, 'Trying to read beyond buffer length')
48277 }
48278
48279 return ieee754.read(buf, offset, littleEndian, 52, 8)
48280}
48281
48282Buffer.prototype.readDoubleLE = function (offset, noAssert) {
48283 return _readDouble(this, offset, true, noAssert)

Callers 1

mathbox-bundle.jsFile · 0.70

Calls 1

assertFunction · 0.70

Tested by

no test coverage detected