Get the current capacity of the basic_streambuf.
basic_streambuf
std::size_t capacity() const;
The current total capacity of the streambuf, i.e. for both the input sequence and output sequence.