aboutsummaryrefslogtreecommitdiff
path: root/src/bench/streams_findbyte.cpp
diff options
context:
space:
mode:
authorMarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz>2023-07-04 17:09:13 +0200
committerMarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz>2023-09-15 14:34:17 +0200
commit9999b89cd37fb2a23c5ebcd91d9cb31d69375933 (patch)
tree3ded8f9c6e98d3ba651d6261851c20d5d7312c5c /src/bench/streams_findbyte.cpp
parentfa389d902fbf5fac19fba8c5d0c5e0a25f15ca63 (diff)
Make BufferedFile to be a CAutoFile wrapper
This refactor allows to forward some calls to the underlying CAutoFile, instead of re-implementing the logic in the buffered file.
Diffstat (limited to 'src/bench/streams_findbyte.cpp')
-rw-r--r--src/bench/streams_findbyte.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bench/streams_findbyte.cpp b/src/bench/streams_findbyte.cpp
index b97f130c67..4aaccb2af8 100644
--- a/src/bench/streams_findbyte.cpp
+++ b/src/bench/streams_findbyte.cpp
@@ -20,7 +20,7 @@ static void FindByte(benchmark::Bench& bench)
data[file_size-1] = 1;
file << data;
std::rewind(file.Get());
- BufferedFile bf{file.Get(), /*nBufSize=*/file_size + 1, /*nRewindIn=*/file_size, 0};
+ BufferedFile bf{file, /*nBufSize=*/file_size + 1, /*nRewindIn=*/file_size};
bench.run([&] {
bf.SetPos(0);