MCPcopy Create free account
hub / github.com/microsoft/SandDance / writeDouble

Function writeDouble

docs/tests/v2/es6/js/sanddance.js:79885–79891  ·  view source on GitHub ↗
(buf, value, offset, littleEndian, noAssert)

Source from the content-addressed store, hash-verified

79883}
79884
79885function writeDouble (buf, value, offset, littleEndian, noAssert) {
79886 if (!noAssert) {
79887 checkIEEE754(buf, value, offset, 8, 1.7976931348623157E+308, -1.7976931348623157E+308)
79888 }
79889 ieee754.write(buf, value, offset, littleEndian, 52, 8)
79890 return offset + 8
79891}
79892
79893Buffer.prototype.writeDoubleLE = function writeDoubleLE (value, offset, noAssert) {
79894 return writeDouble(this, value, offset, true, noAssert)

Callers 1

sanddance.jsFile · 0.70

Calls 1

checkIEEE754Function · 0.70

Tested by

no test coverage detected