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

Function GetInt8

test/dataview/dataview_read_write.cc:15–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13}
14
15static Value GetInt8(const CallbackInfo& info) {
16 size_t byteOffset = info[1].As<Number>().Uint32Value();
17 return Number::New(info.Env(), info[0].As<DataView>().GetInt8(byteOffset));
18}
19
20static Value GetInt16(const CallbackInfo& info) {
21 size_t byteOffset = info[1].As<Number>().Uint32Value();

Callers

nothing calls this directly

Calls 2

EnvMethod · 0.80
GetInt8Method · 0.80

Tested by

no test coverage detected