]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/strmmem.tex
Typos in sizer docs.
[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
16\helpref{wxStreamBuffer}{wxstreamBuffer}
17
b36f57c2
GL
18% ----------
19% Members
20% ----------
21\latexignore{\rtfignore{\wxheading{Members}}}
22
23\membersection{wxMemoryInputStream::wxMemoryInputStream}
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
28\it{data} of length \it{len}.
29
30\membersection{wxMemoryInputStream::\destruct{wxMemoryInputStream}}
31
32\func{}{\destruct{wxFileInputStream}}{\void}
33
34Destructor.
35
36% -----------------------------------------------------------------------------
37% wxMemoryOutputStream
38% -----------------------------------------------------------------------------
39\section{\class{wxMemoryOutputStream}}\label{wxmemoutputstream}
40
41\wxheading{Derived from}
42
43\helpref{wxOutputStream}{wxoutputstream}
44
954b8ae6
JS
45\wxheading{Include files}
46
47<wx/mstream.h>
48
b36f57c2
GL
49\wxheading{See also}
50
51\helpref{wxStreamBuffer}{wxstreamBuffer}
52
b36f57c2
GL
53% ----------
54% Members
55% ----------
56\latexignore{\rtfignore{\wxheading{Members}}}
57
58\membersection{wxMemoryOutputStream::wxMemoryOutputStream}
59
60\func{}{wxMemoryOutputStream}{\param{char *}{ data = NULL}, \param{size\_t}{ length = 0}}
61
62If \it{data} is NULL, then it will initialize a new empty buffer which will
63grow when it needs.
64
65\wxheading{Warning}
66
67If the buffer is created, it will be destroyed at the destruction of the
68stream.
69
70\membersection{wxMemoryOutputStream::\destruct{wxMemoryOutputStream}}
71
72\func{}{\destruct{wxMemoryOutputStream}}{\void}
73
74Destructor.
aed0ed3c 75
f439844b
GL
76\membersection{wxMemoryOutputStream::CopyTo}
77
78\constfunc{size\_t}{CopyTo}{\param{char *}{buffer}, \param{size\_t }{len}}
79
80CopyTo allowed you to transfer data from the internal buffer of
81wxMemoryOutputStream to an external buffer. \it{len} specifies the size of
82the buffer.
83
84\wxheading{Returned value}
85
86CopyTo returns the number of bytes copied to the buffer. Generally it is either
87len or the size of the stream buffer.
22d6efa8 88