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

Function SetUint16

test/dataview/dataview_read_write.cc:81–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79}
80
81static void SetUint16(const CallbackInfo& info) {
82 size_t byteOffset = info[1].As<Number>().Uint32Value();
83 auto value = info[2].As<Number>().Uint32Value();
84 info[0].As<DataView>().SetUint16(byteOffset, value);
85}
86
87static void SetUint32(const CallbackInfo& info) {
88 size_t byteOffset = info[1].As<Number>().Uint32Value();

Callers

nothing calls this directly

Calls 1

SetUint16Method · 0.80

Tested by

no test coverage detected