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

Function GetFloat32

test/dataview/dataview_read_write.cc:5–8  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3using namespace Napi;
4
5static Value GetFloat32(const CallbackInfo& info) {
6 size_t byteOffset = info[1].As<Number>().Uint32Value();
7 return Number::New(info.Env(), info[0].As<DataView>().GetFloat32(byteOffset));
8}
9
10static Value GetFloat64(const CallbackInfo& info) {
11 size_t byteOffset = info[1].As<Number>().Uint32Value();

Callers

nothing calls this directly

Calls 2

EnvMethod · 0.80
GetFloat32Method · 0.80

Tested by

no test coverage detected