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