13 const size_t file_size = 200;
14 uint8_t data[file_size] = {0};
15 data[file_size - 1] = 1;
16 fwrite(&data,
sizeof(uint8_t), file_size, file);
28 fs::remove(
"streams_tmp");
Non-refcounted RAII wrapper around a FILE* that implements a ring buffer to deserialize from.
void FindByte(std::byte byte)
search for a given byte in the stream, and remain positioned on it
bool SetPos(uint64_t nPos)
rewind to a given reading position
Main entry point to nanobench's benchmarking facility.
Bench & run(char const *benchmarkName, Op &&op)
Repeatedly calls op() based on the configuration, and performs measurements.
FILE * fopen(const fs::path &p, const char *mode)
static void FindByte(benchmark::Bench &bench)