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

Function nativeReadDataView

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

Source from the content-addressed store, hash-verified

11 }
12
13 function nativeReadDataView (dataview, type, offset, value) {
14 return eval(`binding.dataview_read_write.get${type}(dataview, offset)`);
15 }
16
17 function nativeWriteDataView (dataview, type, offset, value) {
18 eval(`binding.dataview_read_write.set${type}(dataview, offset, value)`);

Callers 2

testReadDataFunction · 0.85
testInvalidOffsetFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected