input/async: use std::byte instead of uint8_t

This commit is contained in:
Max Kellermann
2022-11-17 06:09:10 +01:00
parent 73dc8ff6bd
commit ce13d82657
2 changed files with 6 additions and 5 deletions

View File

@@ -25,6 +25,7 @@
#include "util/HugeAllocator.hxx"
#include "util/CircularBuffer.hxx"
#include <cstddef>
#include <exception>
/**
@@ -41,9 +42,9 @@ class AsyncInputStream : public InputStream {
InjectEvent deferred_resume;
InjectEvent deferred_seek;
HugeArray<uint8_t> allocation;
HugeArray<std::byte> allocation;
CircularBuffer<uint8_t> buffer;
CircularBuffer<std::byte> buffer;
const size_t resume_at;
bool open = true;
@@ -128,7 +129,7 @@ protected:
return buffer.GetSpace();
}
CircularBuffer<uint8_t>::Range PrepareWriteBuffer() noexcept {
auto PrepareWriteBuffer() noexcept {
return buffer.Write();
}