6 #ifndef XSTREAM_COMMON_H
7 #define XSTREAM_COMMON_H
29 return (epptr() - pptr());
36 std::streamsize
inline taken()
const {
37 return (pptr() - pbase());
67 void grow(
unsigned int factor=2);
common base for objects that manage input and output buffers to use with zlib and bzlib ...
common_buffer(std::streambuf *sb)
construct using a streambuf
void resize(size_t size)
resets the size of the buffer
std::streamsize available() const
remaining characters in the buffer
void grow(unsigned int factor=2)
increases the size of buffer
std::streamsize taken() const
number of characters in the buffer
~buffer()
deallocates buffer