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

Function writeDoubleForwards

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

Source from the content-addressed store, hash-verified

902
903// Write floats.
904function writeDoubleForwards(val, offset = 0) {
905 val = +val;
906 checkBounds(this, offset, 7);
907
908 float64Array[0] = val;
909 this[offset++] = uInt8Float64Array[0];
910 this[offset++] = uInt8Float64Array[1];
911 this[offset++] = uInt8Float64Array[2];
912 this[offset++] = uInt8Float64Array[3];
913 this[offset++] = uInt8Float64Array[4];
914 this[offset++] = uInt8Float64Array[5];
915 this[offset++] = uInt8Float64Array[6];
916 this[offset++] = uInt8Float64Array[7];
917 return offset;
918}
919
920function writeDoubleBackwards(val, offset = 0) {
921 val = +val;

Callers

nothing calls this directly

Calls 1

checkBoundsFunction · 0.85

Tested by

no test coverage detected