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

Function GetInt32

test/dataview/dataview_read_write.cc:25–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23}
24
25static Value GetInt32(const CallbackInfo& info) {
26 size_t byteOffset = info[1].As<Number>().Uint32Value();
27 return Number::New(info.Env(), info[0].As<DataView>().GetInt32(byteOffset));
28}
29
30static Value GetUint8(const CallbackInfo& info) {
31 size_t byteOffset = info[1].As<Number>().Uint32Value();

Callers

nothing calls this directly

Calls 2

EnvMethod · 0.80
GetInt32Method · 0.80

Tested by

no test coverage detected