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

Function _readFloat

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

Source from the content-addressed store, hash-verified

48254}
48255
48256function _readFloat (buf, offset, littleEndian, noAssert) {
48257 if (!noAssert) {
48258 assert(typeof littleEndian === 'boolean', 'missing or invalid endian')
48259 assert(offset + 3 < buf.length, 'Trying to read beyond buffer length')
48260 }
48261
48262 return ieee754.read(buf, offset, littleEndian, 23, 4)
48263}
48264
48265Buffer.prototype.readFloatLE = function (offset, noAssert) {
48266 return _readFloat(this, offset, true, noAssert)

Callers 1

mathbox-bundle.jsFile · 0.70

Calls 1

assertFunction · 0.70

Tested by

no test coverage detected