## wxBufferedOutputStream

This stream acts as a cache. It caches the bytes to be written to the specified output stream (See wxFilterOutputStream). The data is only written when the cache is full, when the buffered stream is destroyed or when calling SeekO().

This class may not be used without some other stream to write the data to (such as a file stream or a memory stream).

Derived from

wxFilterOutputStream

Include files

<wx/stream.h>

See also

wxStreamBuffer, wxOutputStream

Members

wxBufferedOutputStream::wxBufferedOutputStream
wxBufferedOutputStream::~wxBufferedOutputStream
wxBufferedOutputStream::SeekO
wxBufferedOutputStream::Sync

### wxBufferedOutputStream::wxBufferedOutputStream

wxBufferedOutputStream(const wxOutputStream& parent)

Creates a buffered stream using a buffer of a default size of 1024 bytes for cashing the stream parent.

### wxBufferedOutputStream::~wxBufferedOutputStream

~wxBufferedOutputStream()

Destructor. Calls Sync() and destroys the internal buffer.

### wxBufferedOutputStream::SeekO

off_t SeekO(off_t pos, wxSeekMode mode)

Calls Sync() and changes the stream position.

### wxBufferedOutputStream::Sync

void Sync()

Flushes the buffer and calls Sync() on the parent stream.