MCPcopy Create free account
hub / github.com/arvidn/libtorrent / fill_pattern

Function fill_pattern

test/test_storage.cpp:1316–1324  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1314namespace {
1315
1316void fill_pattern(span<char> buf)
1317{
1318 int counter = 0;
1319 for (char& v : buf)
1320 {
1321 v = char(counter & 0xff);
1322 ++counter;
1323 }
1324}
1325
1326bool check_pattern(std::vector<char> const& buf, int counter)
1327{

Callers 1

TORRENT_TESTFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected