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

Function GetByteOffset

test/dataview/dataview.cc:54–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52}
53
54static Value GetByteOffset(const CallbackInfo& info) {
55 return Number::New(info.Env(),
56 static_cast<double>(info[0].As<DataView>().ByteOffset()));
57}
58
59static Value GetByteLength(const CallbackInfo& info) {
60 return Number::New(info.Env(),

Callers

nothing calls this directly

Calls 2

EnvMethod · 0.80
ByteOffsetMethod · 0.80

Tested by

no test coverage detected