]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/strmmem.tex
added wxLocale::IsAvailable() (extended patch 1547191)
[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
dcbd177f 36\membersection{wxMemoryInputStream::\destruct{wxMemoryInputStream}}\label{wxmemoryinputstreamdtor}
b36f57c2 37
85ec2f26 38\func{}{\destruct{wxMemoryInputStream}}{\void}
b36f57c2
GL
39
40Destructor.
41
96461cc2
VZ
42\membersection{wxMemoryInputStream::GetInputStreamBuffer}\label{wxmemoryinputstreamgetistrmbuf}
43
44\constfunc{wxStreamBuffer *}{GetInputStreamBuffer}{\void}
45
46Returns the pointer to the stream object used as an internal buffer
47for that stream.
48
b36f57c2
GL
49% -----------------------------------------------------------------------------
50% wxMemoryOutputStream
51% -----------------------------------------------------------------------------
52\section{\class{wxMemoryOutputStream}}\label{wxmemoutputstream}
53
54\wxheading{Derived from}
55
56\helpref{wxOutputStream}{wxoutputstream}
57
954b8ae6
JS
58\wxheading{Include files}
59
60<wx/mstream.h>
61
b36f57c2
GL
62\wxheading{See also}
63
2bf8e4eb 64\helpref{wxStreamBuffer}{wxstreambuffer}
b36f57c2 65
b36f57c2
GL
66% ----------
67% Members
68% ----------
69\latexignore{\rtfignore{\wxheading{Members}}}
70
dcbd177f 71\membersection{wxMemoryOutputStream::wxMemoryOutputStream}\label{wxmemoryoutputstreamctor}
b36f57c2
GL
72
73\func{}{wxMemoryOutputStream}{\param{char *}{ data = NULL}, \param{size\_t}{ length = 0}}
74
605d715d 75If {\it data} is NULL, then it will initialize a new empty buffer which will
2bf8e4eb 76grow if required.
b36f57c2
GL
77
78\wxheading{Warning}
79
80If the buffer is created, it will be destroyed at the destruction of the
81stream.
82
dcbd177f 83\membersection{wxMemoryOutputStream::\destruct{wxMemoryOutputStream}}\label{wxmemoryoutputstreamdtor}
b36f57c2
GL
84
85\func{}{\destruct{wxMemoryOutputStream}}{\void}
86
87Destructor.
aed0ed3c 88
dcbd177f 89\membersection{wxMemoryOutputStream::CopyTo}\label{wxmemoryoutputstreamcopyto}
f439844b
GL
90
91\constfunc{size\_t}{CopyTo}{\param{char *}{buffer}, \param{size\_t }{len}}
92
93CopyTo allowed you to transfer data from the internal buffer of
605d715d 94wxMemoryOutputStream to an external buffer. {\it len} specifies the size of
f439844b
GL
95the buffer.
96
97\wxheading{Returned value}
98
99CopyTo returns the number of bytes copied to the buffer. Generally it is either
100len or the size of the stream buffer.
22d6efa8 101
96461cc2
VZ
102\membersection{wxMemoryOutputStream::GetOutputStreamBuffer}\label{wxmemoryoutputstreamgetostrmbuf}
103
104\constfunc{wxStreamBuffer *}{GetOutputStreamBuffer}{\void}
105
106Returns the pointer to the stream object used as an internal buffer
107for that stream.
3a40452d 108