MCPcopy Index your code
hub / github.com/nodejs/node-addon-api / InitData

Function InitData

test/buffer.h:11–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9
10template <typename T>
11void InitData(T* data, size_t length) {
12 for (size_t i = 0; i < length; i++) {
13 data[i] = static_cast<T>(i);
14 }
15}
16
17template <typename T>
18bool VerifyData(T* data, size_t length) {

Calls

no outgoing calls

Tested by

no test coverage detected