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
}
16 \wxheading{Include files
}
22 \helpref{wxBase
}{librarieslist
}
26 \helpref{wxStreamBuffer
}{wxstreambuffer
},
\helpref{wxInputStream
}{wxinputstream
},
27 \helpref{wxBufferedOutputStream
}{wxbufferedoutputstream
}
29 % -----------------------------------------------------------------------------
30 % wxBufferedOutputStream
31 % -----------------------------------------------------------------------------
32 \section{\class{wxBufferedOutputStream
}}\label{wxbufferedoutputstream
}
34 This stream acts as a cache. It caches the bytes to be written to the specified
35 output stream (See
\helpref{wxFilterOutputStream
}{wxfilteroutputstream
}). The
36 data is only written when the cache is full, when the buffered stream is
37 destroyed or when calling SeekO().
39 This class may not be used without some other stream to write the data
40 to (such as a file stream or a memory stream).
42 \wxheading{Derived from
}
44 \helpref{wxFilterOutputStream
}{wxfilteroutputstream
}
46 \wxheading{Include files
}
52 \helpref{wxBase
}{librarieslist
}
56 \helpref{wxStreamBuffer
}{wxstreambuffer
},
\helpref{wxOutputStream
}{wxoutputstream
}
61 \latexignore{\rtfignore{\wxheading{Members
}}}
63 \membersection{wxBufferedOutputStream::wxBufferedOutputStream
}\label{wxbufferedoutputstreamctor
}
65 \func{}{wxBufferedOutputStream
}{\param{const wxOutputStream\&
}{ parent
}}
67 Creates a buffered stream using a buffer of a default size of
1024 bytes for cashing
68 the stream
{\it parent
}.
70 \membersection{wxBufferedOutputStream::
\destruct{wxBufferedOutputStream
}}\label{wxbufferedoutputstreamdtor
}
72 \func{}{\destruct{wxBufferedOutputStream
}}{\void}
74 Destructor. Calls Sync() and destroys the internal buffer.
76 \membersection{wxBufferedOutputStream::SeekO
}\label{wxbufferedoutputstreamseeko
}
78 \func{off
\_t}{SeekO
}{\param{off
\_t}{ pos
},
\param{wxSeekMode
}{ mode
}}
80 Calls Sync() and changes the stream position.
82 \membersection{wxBufferedOutputStream::Sync
}\label{wxbufferedoutputstreamsync
}
84 \func{void
}{Sync
}{\void}
86 Flushes the buffer and calls Sync() on the parent stream.