MCPcopy Create free account
hub / github.com/OpenLoco/OpenLoco / generateData

Function generateData

src/Core/tests/FileStreamTests.cpp:27–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25using DataBuffer = std::vector<uint8_t>;
26
27static auto generateData(size_t dataLength)
28{
29 DataBuffer data(dataLength);
30 for (size_t i = 0; i < dataLength; i++)
31 {
32 data[i] = static_cast<uint8_t>(i % 256);
33 }
34 return data;
35}
36
37static void generateFile(const std::filesystem::path& filePath, const DataBuffer& inputBytes)
38{

Callers 1

TESTFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected