]>
Commit | Line | Data |
---|---|---|
fa482912 JS |
1 | % ----------------------------------------------------------------------------- |
2 | % wxCountingOutputStream | |
3 | % ----------------------------------------------------------------------------- | |
4 | \section{\class{wxCountingOutputStream}}\label{wxcountingoutputstream} | |
5 | ||
5cafd4be | 6 | wxCountingOutputStream is a specialized output stream which does not write any data anywhere, |
fa482912 JS |
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 | ||
a7af285d VZ |
24 | \wxheading{Library} |
25 | ||
26 | \helpref{wxBase}{librarieslist} | |
27 | ||
fa482912 JS |
28 | \latexignore{\rtfignore{\wxheading{Members}}} |
29 | ||
30 | % ----------- | |
31 | % ctor & dtor | |
32 | % ----------- | |
f510b7b2 | 33 | \membersection{wxCountingOutputStream::wxCountingOutputStream}\label{wxcountingoutputstreamctor} |
fa482912 JS |
34 | |
35 | \func{}{wxCountingOutputStream}{\void} | |
36 | ||
37 | Creates a wxCountingOutputStream object. | |
38 | ||
f510b7b2 | 39 | \membersection{wxCountingOutputStream::\destruct{wxCountingOutputStream}}\label{wxcountingoutputstreamdtor} |
fa482912 JS |
40 | |
41 | \func{}{\destruct{wxCountingOutputStream}}{\void} | |
42 | ||
43 | Destructor. | |
44 | ||
f510b7b2 | 45 | \membersection{wxCountingOutputStream::GetSize}\label{wxcountingoutputstreamgetsize} |
fa482912 JS |
46 | |
47 | \constfunc{size\_t}{GetSize}{\void} | |
48 | ||
49 | Returns the current size of the stream. | |
50 |