Possibly fixed some crashes when reading in a coroutine.
This commit is contained in:
parent
0d9769f2b7
commit
28ae64169d
@ -115,7 +115,7 @@ public:
|
||||
mijin::Task<StreamError> c_readRaw(void* outData, std::size_t bytes, const ReadOptions& options = {}, std::size_t* outBytesRead = nullptr)
|
||||
{
|
||||
std::uint8_t* ptr = static_cast<std::uint8_t*>(outData);
|
||||
return c_readRaw(std::span(ptr, ptr + bytes), options, outBytesRead);
|
||||
co_return co_await c_readRaw(std::span(ptr, ptr + bytes), options, outBytesRead);
|
||||
}
|
||||
|
||||
template<std::ranges::contiguous_range TRange>
|
||||
|
Loading…
x
Reference in New Issue
Block a user