MCPcopy Index your code
hub / github.com/nodejs/node / writeDoubleBackwards

Function writeDoubleBackwards

lib/internal/buffer.js:920–934  ·  view source on GitHub ↗
(val, offset = 0)

Source from the content-addressed store, hash-verified

918}
919
920function writeDoubleBackwards(val, offset = 0) {
921 val = +val;
922 checkBounds(this, offset, 7);
923
924 float64Array[0] = val;
925 this[offset++] = uInt8Float64Array[7];
926 this[offset++] = uInt8Float64Array[6];
927 this[offset++] = uInt8Float64Array[5];
928 this[offset++] = uInt8Float64Array[4];
929 this[offset++] = uInt8Float64Array[3];
930 this[offset++] = uInt8Float64Array[2];
931 this[offset++] = uInt8Float64Array[1];
932 this[offset++] = uInt8Float64Array[0];
933 return offset;
934}
935
936function writeFloatForwards(val, offset = 0) {
937 val = +val;

Callers

nothing calls this directly

Calls 1

checkBoundsFunction · 0.85

Tested by

no test coverage detected