MCPcopy Create free account
hub / github.com/chronoxor/CppBenchmark / MemoryCopyFixture

Method MemoryCopyFixture

examples/memcpy.cpp:20–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18 uint8_t* buffer;
19
20 MemoryCopyFixture()
21 {
22 // Create memory buffer
23 buffer = (uint8_t*)std::malloc(chunk_size_to);
24 // Prepare memory buffer
25 for (int j = 0; j < chunk_size_to; ++j)
26 buffer[j] = (uint8_t)j;
27 }
28
29 ~MemoryCopyFixture()
30 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected