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

Function VerifyData

test/buffer.h:18–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16
17template <typename T>
18bool VerifyData(T* data, size_t length) {
19 for (size_t i = 0; i < length; i++) {
20 if (data[i] != static_cast<T>(i)) {
21 return false;
22 }
23 }
24 return true;
25}
26} // namespace test_buffer

Callers 5

CreateBufferCopyFunction · 0.70
CheckBufferFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected