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

Function SetInt32

test/dataview/dataview_read_write.cc:69–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67}
68
69static void SetInt32(const CallbackInfo& info) {
70 size_t byteOffset = info[1].As<Number>().Uint32Value();
71 auto value = info[2].As<Number>().Int32Value();
72 info[0].As<DataView>().SetInt32(byteOffset, value);
73}
74
75static void SetUint8(const CallbackInfo& info) {
76 size_t byteOffset = info[1].As<Number>().Uint32Value();

Callers

nothing calls this directly

Calls 1

SetInt32Method · 0.80

Tested by

no test coverage detected