MCPcopy Create free account
hub / github.com/nodejs/node-addon-api / SetFloat32

Function SetFloat32

test/dataview/dataview_read_write.cc:45–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43}
44
45static void SetFloat32(const CallbackInfo& info) {
46 size_t byteOffset = info[1].As<Number>().Uint32Value();
47 auto value = info[2].As<Number>().FloatValue();
48 info[0].As<DataView>().SetFloat32(byteOffset, value);
49}
50
51static void SetFloat64(const CallbackInfo& info) {
52 size_t byteOffset = info[1].As<Number>().Uint32Value();

Callers

nothing calls this directly

Calls 1

SetFloat32Method · 0.80

Tested by

no test coverage detected