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

Function SetInt8

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

Source from the content-addressed store, hash-verified

55}
56
57static void SetInt8(const CallbackInfo& info) {
58 size_t byteOffset = info[1].As<Number>().Uint32Value();
59 auto value = info[2].As<Number>().Int32Value();
60 info[0].As<DataView>().SetInt8(byteOffset, value);
61}
62
63static void SetInt16(const CallbackInfo& info) {
64 size_t byteOffset = info[1].As<Number>().Uint32Value();

Callers

nothing calls this directly

Calls 1

SetInt8Method · 0.80

Tested by

no test coverage detected