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

Function writeFloat

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

Source from the content-addressed store, hash-verified

79867}
79868
79869function writeFloat (buf, value, offset, littleEndian, noAssert) {
79870 if (!noAssert) {
79871 checkIEEE754(buf, value, offset, 4, 3.4028234663852886e+38, -3.4028234663852886e+38)
79872 }
79873 ieee754.write(buf, value, offset, littleEndian, 23, 4)
79874 return offset + 4
79875}
79876
79877Buffer.prototype.writeFloatLE = function writeFloatLE (value, offset, noAssert) {
79878 return writeFloat(this, value, offset, true, noAssert)

Callers 1

sanddance.jsFile · 0.70

Calls 1

checkIEEE754Function · 0.70

Tested by

no test coverage detected