MCPcopy Index your code
hub / github.com/SocketCluster/socketcluster / writeFloat

Function writeFloat

app/public/socketcluster-client.js:4088–4096  ·  view source on GitHub ↗
(buf, value, offset, littleEndian, noAssert)

Source from the content-addressed store, hash-verified

4086}
4087
4088function writeFloat (buf, value, offset, littleEndian, noAssert) {
4089 value = +value
4090 offset = offset >>> 0
4091 if (!noAssert) {
4092 checkIEEE754(buf, value, offset, 4, 3.4028234663852886e+38, -3.4028234663852886e+38)
4093 }
4094 ieee754.write(buf, value, offset, littleEndian, 23, 4)
4095 return offset + 4
4096}
4097
4098Buffer.prototype.writeFloatLE = function writeFloatLE (value, offset, noAssert) {
4099 return writeFloat(this, value, offset, true, noAssert)

Callers 1

Calls 2

checkIEEE754Function · 0.85
writeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…