]> git.saurik.com Git - wxWidgets.git/blob - docs/latex/wx/strmbfrd.tex
Make scrollbars appear.
[wxWidgets.git] / docs / latex / wx / strmbfrd.tex
1 % -----------------------------------------------------------------------------
2 % wxBufferedInputStream
3 % -----------------------------------------------------------------------------
4 \section{\class{wxBufferedInputStream}}\label{wxbufferedinputstream}
5
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).
11
12 \wxheading{Derived from}
13
14 \helpref{wxFilterInputStream}{wxfilterinputstream}
15
16 \wxheading{Include files}
17
18 <wx/stream.h>
19
20 \wxheading{See also}
21
22 \helpref{wxStreamBuffer}{wxstreambuffer}, \helpref{wxInputStream}{wxinputstream},
23 \helpref{wxBufferedOutputStream}{wxbufferedoutputstream}
24
25 % -----------------------------------------------------------------------------
26 % wxBufferedOutputStream
27 % -----------------------------------------------------------------------------
28 \section{\class{wxBufferedOutputStream}}\label{wxbufferedoutputstream}
29
30 This stream acts as a cache. It caches the bytes to be written to the specified
31 output stream (See \helpref{wxFilterOutputStream}{wxfilteroutputstream}). The
32 data is only written when the cache is full, when the buffered stream is
33 destroyed or when calling SeekO().
34
35 This class may not be used without some other stream to write the data
36 to (such as a file stream or a memory stream).
37
38 \wxheading{Derived from}
39
40 \helpref{wxFilterOutputStream}{wxfilteroutputstream}
41
42 \wxheading{Include files}
43
44 <wx/stream.h>
45
46 \wxheading{See also}
47
48 \helpref{wxStreamBuffer}{wxstreambuffer}, \helpref{wxOutputStream}{wxoutputstream}
49
50 % ----------
51 % Members
52 % ----------
53 \latexignore{\rtfignore{\wxheading{Members}}}
54
55 \membersection{wxBufferedOutputStream::wxBufferedOutputStream}
56
57 \func{}{wxBufferedOutputStream}{\param{const wxOutputStream\&}{ parent}}
58
59 Creates a buffered stream using a buffer of a default size of 1024 bytes for cashing
60 the stream {\it parent}.
61
62 \membersection{wxBufferedOutputStream::\destruct{wxBufferedOutputStream}}
63
64 \func{}{\destruct{wxBufferedOutputStream}}{\void}
65
66 Destructor. Calls Sync() and destroys the internal buffer.
67
68 \membersection{wxBufferedOutputStream::SeekO}
69
70 \func{off\_t}{SeekO}{\param{off\_t}{ pos}, \param{wxSeekMode}{ mode}}
71
72 Calls Sync() and changes the stream position.
73
74 \membersection{wxBufferedOutputStream::Sync}
75
76 \func{void}{Sync}{\void}
77
78 Flushes the buffer and calls Sync() on the parent stream.
79
80
81