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

@@ -16,7 +16,7 @@ Copy(OutputStream &dest, Reader &src)
{
while (true) {
std::byte buffer[4096];
size_t nbytes = src.Read(buffer, sizeof(buffer));
std::size_t nbytes = src.Read(buffer);
if (nbytes == 0)
break;