Added tests for buffered streams.

Made wxBufferedOutputStream call Sync() in
    the destructor and SeekO().
  Documented this.
  Use buffered streams in wxImage. Seems to
    significantly speed-up the sample.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4847 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
1999-12-06 18:16:37 +00:00
parent 85d11a7072
commit 1b055864b6
5 changed files with 125 additions and 6 deletions

View File

@@ -856,6 +856,7 @@ wxBufferedOutputStream::wxBufferedOutputStream(wxOutputStream& s)
wxBufferedOutputStream::~wxBufferedOutputStream()
{
Sync();
delete m_o_streambuf;
}
@@ -868,6 +869,7 @@ wxOutputStream& wxBufferedOutputStream::Write(const void *buffer, size_t size)
off_t wxBufferedOutputStream::SeekO(off_t pos, wxSeekMode mode)
{
Sync();
return m_o_streambuf->Seek(pos, mode);
}