CppCMS
|
this is an implementation of generic streambuffer More...
#include <booster/booster/streambuf.h>
Public Member Functions | |
streambuf () | |
void | device (std::auto_ptr< io_device > d) |
void | device (io_device &d) |
void | reset_device () |
io_device & | device () |
void | set_buffer_size (size_t n) |
this is an implementation of generic streambuffer
booster::streambuf::streambuf | ( | ) |
Create a new stream buffer - without a stream
void booster::streambuf::device | ( | std::auto_ptr< io_device > | d | ) |
Assign an io_device to the streambuf transferring an ownership on it
void booster::streambuf::reset_device | ( | ) |
Detach currently attached io_device from the streambuf. If it is owned, it is destroyed.
void booster::streambuf::set_buffer_size | ( | size_t | n | ) |
Set the size of the internal buffer that is used for read and write operations. Default is 1024 bytes for each direction