io/Reader: use std::span

This commit is contained in:
Max Kellermann
2023-10-05 10:25:16 +02:00
parent b9704715fb
commit 7ccc4ddf0d
19 changed files with 52 additions and 51 deletions

View File

@@ -78,7 +78,7 @@ FileInputStream::Read(std::unique_lock<Mutex> &,
{
const ScopeUnlock unlock(mutex);
nbytes = reader.Read(ptr, read_size);
nbytes = reader.Read({static_cast<std::byte *>(ptr), read_size});
}
if (nbytes == 0 && !IsEOF())