1999-07-28 13:16:59 -04:00
|
|
|
% -----------------------------------------------------------------------------
|
|
|
|
% wxBufferedInputStream
|
|
|
|
% -----------------------------------------------------------------------------
|
|
|
|
\section{\class{wxBufferedInputStream}}\label{wxbufferedinputstream}
|
|
|
|
|
1999-11-01 15:36:43 -05:00
|
|
|
This stream acts as a cache. It caches the bytes read from the specified
|
|
|
|
input stream (See \helpref{wxFilterInputStream}{wxfilterinputstream}).
|
|
|
|
It uses wxStreamBuffer and sets the default in-buffer size to 1024 bytes.
|
1999-12-06 11:16:14 -05:00
|
|
|
This class may not be used without some other stream to read the data
|
|
|
|
from (such as a file stream or a memory stream).
|
1999-11-01 15:36:43 -05:00
|
|
|
|
1999-07-28 13:16:59 -04:00
|
|
|
\wxheading{Derived from}
|
|
|
|
|
|
|
|
\helpref{wxFilterInputStream}{wxfilterinputstream}
|
|
|
|
|
|
|
|
\wxheading{Include files}
|
|
|
|
|
|
|
|
<wx/stream.h>
|
|
|
|
|
|
|
|
\wxheading{See also}
|
|
|
|
|
1999-12-12 12:02:50 -05:00
|
|
|
\helpref{wxStreamBuffer}{wxstreambuffer}, \helpref{wxInputStream}{wxinputstream},
|
|
|
|
\helpref{wxBufferedOutputStream}{wxbufferedoutputstream}
|
1999-07-28 13:16:59 -04:00
|
|
|
|
|
|
|
% -----------------------------------------------------------------------------
|
|
|
|
% wxBufferedOutputStream
|
|
|
|
% -----------------------------------------------------------------------------
|
|
|
|
\section{\class{wxBufferedOutputStream}}\label{wxbufferedoutputstream}
|
|
|
|
|
1999-11-01 15:36:43 -05:00
|
|
|
This stream acts as a cache. It caches the bytes to be written to the specified
|
|
|
|
output stream (See \helpref{wxFilterOutputStream}{wxfilteroutputstream}). The
|
1999-12-12 12:02:50 -05:00
|
|
|
data is only written when the cache is full, when the buffered stream is
|
1999-12-06 13:16:37 -05:00
|
|
|
destroyed or when calling SeekO().
|
|
|
|
|
1999-12-06 11:16:14 -05:00
|
|
|
This class may not be used without some other stream to write the data
|
|
|
|
to (such as a file stream or a memory stream).
|
1999-11-01 15:36:43 -05:00
|
|
|
|
1999-07-28 13:16:59 -04:00
|
|
|
\wxheading{Derived from}
|
|
|
|
|
|
|
|
\helpref{wxFilterOutputStream}{wxfilteroutputstream}
|
|
|
|
|
|
|
|
\wxheading{Include files}
|
|
|
|
|
|
|
|
<wx/stream.h>
|
|
|
|
|
|
|
|
\wxheading{See also}
|
|
|
|
|
1999-12-12 12:02:50 -05:00
|
|
|
\helpref{wxStreamBuffer}{wxstreambuffer}, \helpref{wxOutputStream}{wxoutputstream}
|
1999-07-28 13:16:59 -04:00
|
|
|
|
1999-12-06 13:16:37 -05:00
|
|
|
% ----------
|
|
|
|
% Members
|
|
|
|
% ----------
|
|
|
|
\latexignore{\rtfignore{\wxheading{Members}}}
|
|
|
|
|
2004-10-04 11:13:52 -04:00
|
|
|
\membersection{wxBufferedOutputStream::wxBufferedOutputStream}\label{wxbufferedoutputstreamctor}
|
1999-12-06 13:16:37 -05:00
|
|
|
|
|
|
|
\func{}{wxBufferedOutputStream}{\param{const wxOutputStream\&}{ parent}}
|
|
|
|
|
|
|
|
Creates a buffered stream using a buffer of a default size of 1024 bytes for cashing
|
|
|
|
the stream {\it parent}.
|
|
|
|
|
2004-10-04 11:13:52 -04:00
|
|
|
\membersection{wxBufferedOutputStream::\destruct{wxBufferedOutputStream}}\label{wxbufferedoutputstreamdtor}
|
1999-12-06 13:16:37 -05:00
|
|
|
|
|
|
|
\func{}{\destruct{wxBufferedOutputStream}}{\void}
|
|
|
|
|
|
|
|
Destructor. Calls Sync() and destroys the internal buffer.
|
|
|
|
|
2004-10-04 11:13:52 -04:00
|
|
|
\membersection{wxBufferedOutputStream::SeekO}\label{wxbufferedoutputstreamseeko}
|
1999-12-06 13:16:37 -05:00
|
|
|
|
|
|
|
\func{off\_t}{SeekO}{\param{off\_t}{ pos}, \param{wxSeekMode}{ mode}}
|
|
|
|
|
|
|
|
Calls Sync() and changes the stream position.
|
|
|
|
|
2004-10-04 11:13:52 -04:00
|
|
|
\membersection{wxBufferedOutputStream::Sync}\label{wxbufferedoutputstreamsync}
|
1999-12-06 13:16:37 -05:00
|
|
|
|
|
|
|
\func{void}{Sync}{\void}
|
|
|
|
|
|
|
|
Flushes the buffer and calls Sync() on the parent stream.
|
|
|
|
|
|
|
|
|
|
|
|
|