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

Function writeDouble

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

Source from the content-addressed store, hash-verified

4104}
4105
4106function writeDouble (buf, value, offset, littleEndian, noAssert) {
4107 value = +value
4108 offset = offset >>> 0
4109 if (!noAssert) {
4110 checkIEEE754(buf, value, offset, 8, 1.7976931348623157E+308, -1.7976931348623157E+308)
4111 }
4112 ieee754.write(buf, value, offset, littleEndian, 52, 8)
4113 return offset + 8
4114}
4115
4116Buffer.prototype.writeDoubleLE = function writeDoubleLE (value, offset, noAssert) {
4117 return writeDouble(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…