]> git.saurik.com Git - wxWidgets.git/blame_incremental - docs/latex/wx/strmmem.tex
Added logic, API and docs for wxDataViewModel::HasDefaultCompare indicating a compare...
[wxWidgets.git] / docs / latex / wx / strmmem.tex
... / ...
CommitLineData
1% -----------------------------------------------------------------------------
2% wxMemoryInputStream
3% -----------------------------------------------------------------------------
4\section{\class{wxMemoryInputStream}}\label{wxmeminputstream}
5
6\wxheading{Derived from}
7
8\helpref{wxInputStream}{wxinputstream}\\
9\helpref{wxStreamBase}{wxstreambase}
10
11\wxheading{Include files}
12
13<wx/mstream.h>
14
15\wxheading{Library}
16
17\helpref{wxBase}{librarieslist}
18
19\wxheading{See also}
20
21\helpref{wxStreamBuffer}{wxstreambuffer}, \helpref{wxMemoryOutputStream}{wxmemoutputstream}
22
23% ----------
24% Members
25% ----------
26\latexignore{\rtfignore{\wxheading{Members}}}
27
28\membersection{wxMemoryInputStream::wxMemoryInputStream}\label{wxmemoryinputstreamctor}
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
33{\it data} of length {\it len}. The stream does not take ownership of the
34buffer, i.e. the buffer will not be deleted in its destructor.
35
36\func{}{wxMemoryInputStream}{\param{const wxMemoryOutputStream&}{ stream}}
37
38Creates a new read-only memory stream, initializing it with the
39data from the given output stream \arg{stream}.
40
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
51\membersection{wxMemoryInputStream::\destruct{wxMemoryInputStream}}\label{wxmemoryinputstreamdtor}
52
53\func{}{\destruct{wxMemoryInputStream}}{\void}
54
55Destructor.
56
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
64% -----------------------------------------------------------------------------
65% wxMemoryOutputStream
66% -----------------------------------------------------------------------------
67\section{\class{wxMemoryOutputStream}}\label{wxmemoutputstream}
68
69\wxheading{Derived from}
70
71\helpref{wxOutputStream}{wxoutputstream}\\
72\helpref{wxStreamBase}{wxstreambase}
73
74\wxheading{Include files}
75
76<wx/mstream.h>
77
78\wxheading{Library}
79
80\helpref{wxBase}{librarieslist}
81
82\wxheading{See also}
83
84\helpref{wxStreamBuffer}{wxstreambuffer}
85
86% ----------
87% Members
88% ----------
89\latexignore{\rtfignore{\wxheading{Members}}}
90
91\membersection{wxMemoryOutputStream::wxMemoryOutputStream}\label{wxmemoryoutputstreamctor}
92
93\func{}{wxMemoryOutputStream}{\param{char *}{ data = NULL}, \param{size\_t}{ length = 0}}
94
95If {\it data} is NULL, then it will initialize a new empty buffer which will
96grow if required.
97
98\wxheading{Warning}
99
100If the buffer is created, it will be destroyed at the destruction of the
101stream.
102
103\membersection{wxMemoryOutputStream::\destruct{wxMemoryOutputStream}}\label{wxmemoryoutputstreamdtor}
104
105\func{}{\destruct{wxMemoryOutputStream}}{\void}
106
107Destructor.
108
109\membersection{wxMemoryOutputStream::CopyTo}\label{wxmemoryoutputstreamcopyto}
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
114wxMemoryOutputStream to an external buffer. {\it len} specifies the size of
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.
121
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.
128