]>
Commit | Line | Data |
---|---|---|
3de08727 GL |
1 | % ----------------------------------------------------------------------------- |
2 | % wxBufferedInputStream | |
3 | % ----------------------------------------------------------------------------- | |
4 | \section{\class{wxBufferedInputStream}}\label{wxbufferedinputstream} | |
5 | ||
36edded9 JS |
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. | |
d984207c RR |
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). | |
36edded9 | 11 | |
3de08727 GL |
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 | ||
85ec2f26 RR |
22 | \helpref{wxStreamBuffer}{wxstreambuffer}, \helpref{wxInputStream}{wxinputstream}, |
23 | \helpref{wxBufferedOutputStream}{wxbufferedoutputstream} | |
3de08727 | 24 | |
3de08727 GL |
25 | % ----------------------------------------------------------------------------- |
26 | % wxBufferedOutputStream | |
27 | % ----------------------------------------------------------------------------- | |
28 | \section{\class{wxBufferedOutputStream}}\label{wxbufferedoutputstream} | |
29 | ||
36edded9 JS |
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 | |
85ec2f26 | 32 | data is only written when the cache is full, when the buffered stream is |
1b055864 RR |
33 | destroyed or when calling SeekO(). |
34 | ||
d984207c RR |
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). | |
36edded9 | 37 | |
3de08727 GL |
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 | ||
85ec2f26 | 48 | \helpref{wxStreamBuffer}{wxstreambuffer}, \helpref{wxOutputStream}{wxoutputstream} |
3de08727 | 49 | |
1b055864 RR |
50 | % ---------- |
51 | % Members | |
52 | % ---------- | |
53 | \latexignore{\rtfignore{\wxheading{Members}}} | |
54 | ||
f510b7b2 | 55 | \membersection{wxBufferedOutputStream::wxBufferedOutputStream}\label{wxbufferedoutputstreamctor} |
1b055864 RR |
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 | ||
f510b7b2 | 62 | \membersection{wxBufferedOutputStream::\destruct{wxBufferedOutputStream}}\label{wxbufferedoutputstreamdtor} |
1b055864 RR |
63 | |
64 | \func{}{\destruct{wxBufferedOutputStream}}{\void} | |
65 | ||
66 | Destructor. Calls Sync() and destroys the internal buffer. | |
67 | ||
f510b7b2 | 68 | \membersection{wxBufferedOutputStream::SeekO}\label{wxbufferedoutputstreamseeko} |
1b055864 RR |
69 | |
70 | \func{off\_t}{SeekO}{\param{off\_t}{ pos}, \param{wxSeekMode}{ mode}} | |
71 | ||
72 | Calls Sync() and changes the stream position. | |
73 | ||
f510b7b2 | 74 | \membersection{wxBufferedOutputStream::Sync}\label{wxbufferedoutputstreamsync} |
1b055864 RR |
75 | |
76 | \func{void}{Sync}{\void} | |
77 | ||
78 | Flushes the buffer and calls Sync() on the parent stream. | |
79 | ||
80 | ||
81 |