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).
wxBufferedOutputStream(const wxOutputStream& parent)
Creates a buffered stream using a buffer of a default size of 1024 bytes for cashing the stream parent.
Destructor. Calls Sync() and destroys the internal buffer.
off_t SeekO(off_t pos, wxSeekMode mode)
Calls Sync() and changes the stream position.
Flushes the buffer and calls Sync() on the parent stream.