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

Function SetInt16

test/dataview/dataview_read_write.cc:63–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61}
62
63static void SetInt16(const CallbackInfo& info) {
64 size_t byteOffset = info[1].As<Number>().Uint32Value();
65 auto value = info[2].As<Number>().Int32Value();
66 info[0].As<DataView>().SetInt16(byteOffset, value);
67}
68
69static void SetInt32(const CallbackInfo& info) {
70 size_t byteOffset = info[1].As<Number>().Uint32Value();

Callers

nothing calls this directly

Calls 1

SetInt16Method · 0.80

Tested by

no test coverage detected