]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/strmmem.tex
Added const and virtual in various places
[wxWidgets.git] / docs / latex / wx / strmmem.tex
CommitLineData
b36f57c2
GL
1% -----------------------------------------------------------------------------
2% wxMemoryInputStream
3% -----------------------------------------------------------------------------
4\section{\class{wxMemoryInputStream}}\label{wxmeminputstream}
5
6\wxheading{Derived from}
7
7376079d
VZ
8\helpref{wxInputStream}{wxinputstream}\\
9\helpref{wxStreamBase}{wxstreambase}
b36f57c2 10
954b8ae6
JS
11\wxheading{Include files}
12
13<wx/mstream.h>
14
a7af285d
VZ
15\wxheading{Library}
16
17\helpref{wxBase}{librarieslist}
18
b36f57c2
GL
19\wxheading{See also}
20
85ec2f26 21\helpref{wxStreamBuffer}{wxstreambuffer}, \helpref{wxMemoryOutputStream}{wxmemoutputstream}
b36f57c2 22
b36f57c2
GL
23% ----------
24% Members
25% ----------
26\latexignore{\rtfignore{\wxheading{Members}}}
27
dcbd177f 28\membersection{wxMemoryInputStream::wxMemoryInputStream}\label{wxmemoryinputstreamctor}
b36f57c2
GL
29
30\func{}{wxMemoryInputStream}{\param{const char *}{ data}, \param{size\_t}{ len}}
31
32Initializes a new read-only memory stream which will use the specified buffer
2bf8e4eb 33{\it data} of length {\it len}. The stream does not take ownership of the
08890e27 34buffer, i.e. the buffer will not be deleted in its destructor.
b36f57c2 35
96461cc2
VZ
36\func{}{wxMemoryInputStream}{\param{const wxMemoryOutputStream&}{ stream}}
37
08890e27 38Creates a new read-only memory stream, initializing it with the
96461cc2
VZ
39data from the given output stream \arg{stream}.
40
76447155
VZ
41\func{}{wxMemoryInputStream}{\param{wxInputStream\&}{ stream}, \param{wxFileOffset}{ len = wxInvalidOffset}}
42
43Creates a new read-only memory stream, initializing it with the
44data from the given input stream \arg{stream}.
45
46The \arg{len} argument specifies the amount of data to read from
47the \arg{stream}. Setting it to {\it wxInvalidOffset} means that
48the \arg{stream} is to be read entirely (i.e. till the EOF is reached).
49
50
dcbd177f 51\membersection{wxMemoryInputStream::\destruct{wxMemoryInputStream}}\label{wxmemoryinputstreamdtor}
b36f57c2 52
85ec2f26 53\func{}{\destruct{wxMemoryInputStream}}{\void}
b36f57c2
GL
54
55Destructor.
56
96461cc2
VZ
57\membersection{wxMemoryInputStream::GetInputStreamBuffer}\label{wxmemoryinputstreamgetistrmbuf}
58
59\constfunc{wxStreamBuffer *}{GetInputStreamBuffer}{\void}
60
61Returns the pointer to the stream object used as an internal buffer
62for that stream.
63
b36f57c2
GL
64% -----------------------------------------------------------------------------
65% wxMemoryOutputStream
66% -----------------------------------------------------------------------------
67\section{\class{wxMemoryOutputStream}}\label{wxmemoutputstream}
68
69\wxheading{Derived from}
70
7376079d
VZ
71\helpref{wxOutputStream}{wxoutputstream}\\
72\helpref{wxStreamBase}{wxstreambase}
b36f57c2 73
954b8ae6
JS
74\wxheading{Include files}
75
76<wx/mstream.h>
77
a7af285d
VZ
78\wxheading{Library}
79
80\helpref{wxBase}{librarieslist}
81
b36f57c2
GL
82\wxheading{See also}
83
2bf8e4eb 84\helpref{wxStreamBuffer}{wxstreambuffer}
b36f57c2 85
b36f57c2
GL
86% ----------
87% Members
88% ----------
89\latexignore{\rtfignore{\wxheading{Members}}}
90
dcbd177f 91\membersection{wxMemoryOutputStream::wxMemoryOutputStream}\label{wxmemoryoutputstreamctor}
b36f57c2
GL
92
93\func{}{wxMemoryOutputStream}{\param{char *}{ data = NULL}, \param{size\_t}{ length = 0}}
94
605d715d 95If {\it data} is NULL, then it will initialize a new empty buffer which will
2bf8e4eb 96grow if required.
b36f57c2
GL
97
98\wxheading{Warning}
99
100If the buffer is created, it will be destroyed at the destruction of the
101stream.
102
dcbd177f 103\membersection{wxMemoryOutputStream::\destruct{wxMemoryOutputStream}}\label{wxmemoryoutputstreamdtor}
b36f57c2
GL
104
105\func{}{\destruct{wxMemoryOutputStream}}{\void}
106
107Destructor.
aed0ed3c 108
dcbd177f 109\membersection{wxMemoryOutputStream::CopyTo}\label{wxmemoryoutputstreamcopyto}
f439844b
GL
110
111\constfunc{size\_t}{CopyTo}{\param{char *}{buffer}, \param{size\_t }{len}}
112
113CopyTo allowed you to transfer data from the internal buffer of
605d715d 114wxMemoryOutputStream to an external buffer. {\it len} specifies the size of
f439844b
GL
115the buffer.
116
117\wxheading{Returned value}
118
119CopyTo returns the number of bytes copied to the buffer. Generally it is either
120len or the size of the stream buffer.
22d6efa8 121
96461cc2
VZ
122\membersection{wxMemoryOutputStream::GetOutputStreamBuffer}\label{wxmemoryoutputstreamgetostrmbuf}
123
124\constfunc{wxStreamBuffer *}{GetOutputStreamBuffer}{\void}
125
126Returns the pointer to the stream object used as an internal buffer
127for that stream.
3a40452d 128