1 % -----------------------------------------------------------------------------
2 % wxBufferedInputStream
3 % -----------------------------------------------------------------------------
4 \section{\class{wxBufferedInputStream
}}\label{wxbufferedinputstream
}
6 This stream acts as a cache. It caches the bytes read from the specified
7 input stream (See
\helpref{wxFilterInputStream
}{wxfilterinputstream
}).
8 It uses wxStreamBuffer and sets the default in-buffer size to
1024 bytes.
9 This class may not be used without some other stream to read the data
10 from (such as a file stream or a memory stream).
12 \wxheading{Derived from
}
14 \helpref{wxFilterInputStream
}{wxfilterinputstream
}\\
15 \helpref{wxInputStream
}{wxinputstream
}\\
16 \helpref{wxStreamBase
}{wxstreambase
}
18 \wxheading{Include files
}
24 \helpref{wxBase
}{librarieslist
}
28 \helpref{wxStreamBuffer
}{wxstreambuffer
},
\helpref{wxInputStream
}{wxinputstream
},
29 \helpref{wxBufferedOutputStream
}{wxbufferedoutputstream
}
31 % -----------------------------------------------------------------------------
32 % wxBufferedOutputStream
33 % -----------------------------------------------------------------------------
34 \section{\class{wxBufferedOutputStream
}}\label{wxbufferedoutputstream
}
36 This stream acts as a cache. It caches the bytes to be written to the specified
37 output stream (See
\helpref{wxFilterOutputStream
}{wxfilteroutputstream
}). The
38 data is only written when the cache is full, when the buffered stream is
39 destroyed or when calling SeekO().
41 This class may not be used without some other stream to write the data
42 to (such as a file stream or a memory stream).
44 \wxheading{Derived from
}
46 \helpref{wxFilterOutputStream
}{wxfilteroutputstream
}\\
47 \helpref{wxOutputStream
}{wxoutputstream
}\\
48 \helpref{wxStreamBase
}{wxstreambase
}
50 \wxheading{Include files
}
56 \helpref{wxBase
}{librarieslist
}
60 \helpref{wxStreamBuffer
}{wxstreambuffer
},
\helpref{wxOutputStream
}{wxoutputstream
}
65 \latexignore{\rtfignore{\wxheading{Members
}}}
67 \membersection{wxBufferedOutputStream::wxBufferedOutputStream
}\label{wxbufferedoutputstreamctor
}
69 \func{}{wxBufferedOutputStream
}{\param{const wxOutputStream\&
}{ parent
}}
71 Creates a buffered stream using a buffer of a default size of
1024 bytes for cashing
72 the stream
{\it parent
}.
74 \membersection{wxBufferedOutputStream::
\destruct{wxBufferedOutputStream
}}\label{wxbufferedoutputstreamdtor
}
76 \func{}{\destruct{wxBufferedOutputStream
}}{\void}
78 Destructor. Calls Sync() and destroys the internal buffer.
80 \membersection{wxBufferedOutputStream::SeekO
}\label{wxbufferedoutputstreamseeko
}
82 \func{off
\_t}{SeekO
}{\param{off
\_t}{ pos
},
\param{wxSeekMode
}{ mode
}}
84 Calls Sync() and changes the stream position.
86 \membersection{wxBufferedOutputStream::Sync
}\label{wxbufferedoutputstreamsync
}
88 \func{void
}{Sync
}{\void}
90 Flushes the buffer and calls Sync() on the parent stream.