MCPcopy Create free account
hub / github.com/HO-COOH/FastCopy / createFile

Function createFile

SpeedTest/TestCases.cpp:7–12  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5#include <fstream>
6#include <filesystem>
7static void createFile(std::wstring_view path, std::span<char const> buffer, int repeat = 1)
8{
9 std::ofstream fs{ path.data() , std::ios::binary };
10 while(repeat--)
11 fs.write(buffer.data(), buffer.size());
12}
13
14void Random4KFiles::operator()(std::vector<TestOperation>& test) const
15{

Callers 1

operator()Method · 0.85

Calls 3

dataMethod · 0.80
writeMethod · 0.80
sizeMethod · 0.80

Tested by

no test coverage detected