66class
IOBuf final : public io::InputStream, public io::PeekableStream {
69 using Node = std::unique_ptr<IOBufNode>;
83 [[nodiscard]]
size_t getTotalSize() const noexcept;
89 int64_t
read(
void *
buffer,
size_t length) override;
95 int64_t peek(
void *
buffer,
size_t length) override;
100 int64_t trunc(
size_t length) override;