]> git.saurik.com Git - wxWidgets.git/blob - docs/latex/wx/countstr.tex
compilation fix after TRUE/FALSE change
[wxWidgets.git] / docs / latex / wx / countstr.tex
1 % -----------------------------------------------------------------------------
2 % wxCountingOutputStream
3 % -----------------------------------------------------------------------------
4 \section{\class{wxCountingOutputStream}}\label{wxcountingoutputstream}
5
6 wxCountingOutputStream is a specialized output stream which does not write any data anyway,
7 instead it counts how many bytes would get written if this were a normal stream. This
8 can sometimes be useful or required if some data gets serialized to a stream or compressed
9 by using stream compression and thus the final size of the stream cannot be known other
10 than pretending to write the stream. One case where the resulting size would have to be
11 known is if the data has to be written to a piece of memory and the memory has to be
12 allocated before writing to it (which is probably always the case when writing to a
13 memory stream).
14
15 \wxheading{Derived from}
16
17 \helpref{wxOutputStream}{wxoutputstream}
18 \helpref{wxStreamBase}{wxstreambase}
19
20 \wxheading{Include files}
21
22 <wx/stream.h>
23
24 \latexignore{\rtfignore{\wxheading{Members}}}
25
26 % -----------
27 % ctor & dtor
28 % -----------
29 \membersection{wxCountingOutputStream::wxCountingOutputStream}
30
31 \func{}{wxCountingOutputStream}{\void}
32
33 Creates a wxCountingOutputStream object.
34
35 \membersection{wxCountingOutputStream::\destruct{wxCountingOutputStream}}
36
37 \func{}{\destruct{wxCountingOutputStream}}{\void}
38
39 Destructor.
40
41 \membersection{wxCountingOutputStream::GetSize}
42
43 \constfunc{size\_t}{GetSize}{\void}
44
45 Returns the current size of the stream.
46