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

Function jsReadDataView

test/dataview/dataview_read_write.js:28–30  ·  view source on GitHub ↗
(dataview, type, offset, value)

Source from the content-addressed store, hash-verified

26 }
27
28 function jsReadDataView (dataview, type, offset, value) {
29 return eval(`dataview.get${type}(offset, isLittleEndian())`);
30 }
31
32 function jsWriteDataView (dataview, type, offset, value) {
33 eval(`dataview.set${type}(offset, value, isLittleEndian())`);

Callers 2

testReadDataFunction · 0.85
testWriteDataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected