input/InputStream: pass std::span<std::byte> to Read()

This commit is contained in:
Max Kellermann
2024-05-13 10:47:57 +02:00
parent f28d10d934
commit 34f7b38f39
66 changed files with 248 additions and 274 deletions

View File

@@ -60,10 +60,10 @@ DumpDecoderClient::OpenUri(const char *uri)
}
size_t
DumpDecoderClient::Read(InputStream &is, void *buffer, size_t length) noexcept
DumpDecoderClient::Read(InputStream &is, std::span<std::byte> dest) noexcept
{
try {
return is.LockRead(buffer, length);
return is.LockRead(dest);
} catch (...) {
return 0;
}