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

Function SetUint8

test/dataview/dataview_read_write.cc:75–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73}
74
75static void SetUint8(const CallbackInfo& info) {
76 size_t byteOffset = info[1].As<Number>().Uint32Value();
77 auto value = info[2].As<Number>().Uint32Value();
78 info[0].As<DataView>().SetUint8(byteOffset, value);
79}
80
81static void SetUint16(const CallbackInfo& info) {
82 size_t byteOffset = info[1].As<Number>().Uint32Value();

Callers

nothing calls this directly

Calls 1

SetUint8Method · 0.80

Tested by

no test coverage detected