Use only Span{} constructor for byte-like types where possible

This removes bloat that is not needed.
This commit is contained in:
MarcoFalke
2023-06-22 17:02:28 +02:00
parent fa257bc831
commit fa38d86235
10 changed files with 23 additions and 23 deletions

View File

@@ -34,7 +34,7 @@ static void LoadExternalBlockFile(benchmark::Bench& bench)
ss << static_cast<uint32_t>(benchmark::data::block413567.size());
// We can't use the streaming serialization (ss << benchmark::data::block413567)
// because that first writes a compact size.
ss.write(MakeByteSpan(benchmark::data::block413567));
ss << Span{benchmark::data::block413567};
// Create the test file.
{