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

Function GetUint16

test/dataview/dataview_read_write.cc:35–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33}
34
35static Value GetUint16(const CallbackInfo& info) {
36 size_t byteOffset = info[1].As<Number>().Uint32Value();
37 return Number::New(info.Env(), info[0].As<DataView>().GetUint16(byteOffset));
38}
39
40static Value GetUint32(const CallbackInfo& info) {
41 size_t byteOffset = info[1].As<Number>().Uint32Value();

Callers

nothing calls this directly

Calls 2

EnvMethod · 0.80
GetUint16Method · 0.80

Tested by

no test coverage detected