Requires stream ownership to prevent leaving the stream at an unexpected position after buffered reads.
Synopsis
Declared in <streams.h>
explicit
BufferedReader(
S&& stream,
size_t size = 1 << 16)
requires std::is_rvalue_reference_v<S&&>;
Parameters
Name |
Description |
stream |
Underlying stream to read from; ownership is taken via rvalue reference. |
size |
Size in bytes of the internal read buffer. |
Created with MrDocs