Stream Buffer

The heart of a stream

The heart of a stream is its buffer.

Inherit from std::basic_streambuf to create a stream buffer and override the virtual functions.