MCPcopy Create free account
hub / github.com/Niko1221/Strata / raw

Function raw

engine/src/split/tools/convert_parallel_test.cpp:66–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64 return s;
65}
66Spec raw(const std::string& name, uint32_t type, uint64_t cols, uint64_t rows, size_t block_elems, size_t block_bytes) {
67 const size_t blocks = (size_t) (cols * rows) / block_elems;
68 Spec s{name, type, {cols, rows}, std::vector<uint8_t>(blocks * block_bytes)};
69 for (auto& b : s.data) b = (uint8_t) rnd();
70 return s;
71}
72
73void put32(std::vector<uint8_t>& o, uint32_t v) { o.insert(o.end(), (uint8_t*) &v, (uint8_t*) &v + 4); }
74void put64(std::vector<uint8_t>& o, uint64_t v) { o.insert(o.end(), (uint8_t*) &v, (uint8_t*) &v + 8); }

Callers 11

mainFunction · 0.70
u64Method · 0.50
i64Method · 0.50
vecMethod · 0.50
bufferMethod · 0.50
u64Method · 0.50
i64Method · 0.50
vecMethod · 0.50
bufferMethod · 0.50
rd_bindingFunction · 0.50
blobMethod · 0.50

Calls 1

rndFunction · 0.70

Tested by

no test coverage detected