Wrapper that buffers reads from an underlying stream. Requires underlying stream to support read() and detail_fread() calls to support fixed‐size and variable‐sized reads, respectively.

Synopsis

Declared in <streams.h>

template<typename S>
class BufferedReader;

Member Functions

Name

Description

BufferedReader [constructor]

Requires stream ownership to prevent leaving the stream at an unexpected position after buffered reads.

operator>>

Deserialize an object from the buffered reader and return this reader.

read

Read bytes into dst, serving them from the buffer and refilling from the source as needed.

Created with MrDocs