input/InputStream: pass std::span<std::byte> to Read()
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user