1999-02-12 14:03:32 -05:00
|
|
|
% -----------------------------------------------------------------------------
|
|
|
|
% wxMemoryInputStream
|
|
|
|
% -----------------------------------------------------------------------------
|
|
|
|
\section{\class{wxMemoryInputStream}}\label{wxmeminputstream}
|
|
|
|
|
|
|
|
\wxheading{Derived from}
|
|
|
|
|
|
|
|
\helpref{wxInputStream}{wxinputstream}
|
|
|
|
|
1999-02-15 15:41:29 -05:00
|
|
|
\wxheading{Include files}
|
|
|
|
|
|
|
|
<wx/mstream.h>
|
|
|
|
|
1999-02-12 14:03:32 -05:00
|
|
|
\wxheading{See also}
|
|
|
|
|
1999-12-12 12:02:50 -05:00
|
|
|
\helpref{wxStreamBuffer}{wxstreambuffer}, \helpref{wxMemoryOutputStream}{wxmemoutputstream}
|
1999-02-12 14:03:32 -05:00
|
|
|
|
|
|
|
% ----------
|
|
|
|
% Members
|
|
|
|
% ----------
|
|
|
|
\latexignore{\rtfignore{\wxheading{Members}}}
|
|
|
|
|
|
|
|
\membersection{wxMemoryInputStream::wxMemoryInputStream}
|
|
|
|
|
|
|
|
\func{}{wxMemoryInputStream}{\param{const char *}{ data}, \param{size\_t}{ len}}
|
|
|
|
|
|
|
|
Initializes a new read-only memory stream which will use the specified buffer
|
1999-12-08 14:04:29 -05:00
|
|
|
{\it data} of length {\it len}. The stream does not take ownership of the
|
1999-12-12 12:02:50 -05:00
|
|
|
buffer, i.e. that it will not delete in its destructor.
|
1999-02-12 14:03:32 -05:00
|
|
|
|
|
|
|
\membersection{wxMemoryInputStream::\destruct{wxMemoryInputStream}}
|
|
|
|
|
1999-12-12 12:02:50 -05:00
|
|
|
\func{}{\destruct{wxMemoryInputStream}}{\void}
|
1999-02-12 14:03:32 -05:00
|
|
|
|
|
|
|
Destructor.
|
|
|
|
|
|
|
|
% -----------------------------------------------------------------------------
|
|
|
|
% wxMemoryOutputStream
|
|
|
|
% -----------------------------------------------------------------------------
|
|
|
|
\section{\class{wxMemoryOutputStream}}\label{wxmemoutputstream}
|
|
|
|
|
|
|
|
\wxheading{Derived from}
|
|
|
|
|
|
|
|
\helpref{wxOutputStream}{wxoutputstream}
|
|
|
|
|
1999-02-15 15:41:29 -05:00
|
|
|
\wxheading{Include files}
|
|
|
|
|
|
|
|
<wx/mstream.h>
|
|
|
|
|
1999-02-12 14:03:32 -05:00
|
|
|
\wxheading{See also}
|
|
|
|
|
1999-12-08 14:04:29 -05:00
|
|
|
\helpref{wxStreamBuffer}{wxstreambuffer}
|
1999-02-12 14:03:32 -05:00
|
|
|
|
|
|
|
% ----------
|
|
|
|
% Members
|
|
|
|
% ----------
|
|
|
|
\latexignore{\rtfignore{\wxheading{Members}}}
|
|
|
|
|
|
|
|
\membersection{wxMemoryOutputStream::wxMemoryOutputStream}
|
|
|
|
|
|
|
|
\func{}{wxMemoryOutputStream}{\param{char *}{ data = NULL}, \param{size\_t}{ length = 0}}
|
|
|
|
|
1999-12-24 18:40:13 -05:00
|
|
|
If {\it data} is NULL, then it will initialize a new empty buffer which will
|
1999-12-08 14:04:29 -05:00
|
|
|
grow if required.
|
1999-02-12 14:03:32 -05:00
|
|
|
|
|
|
|
\wxheading{Warning}
|
|
|
|
|
|
|
|
If the buffer is created, it will be destroyed at the destruction of the
|
|
|
|
stream.
|
|
|
|
|
|
|
|
\membersection{wxMemoryOutputStream::\destruct{wxMemoryOutputStream}}
|
|
|
|
|
|
|
|
\func{}{\destruct{wxMemoryOutputStream}}{\void}
|
|
|
|
|
|
|
|
Destructor.
|
1999-02-12 17:00:14 -05:00
|
|
|
|
1999-08-01 03:26:36 -04:00
|
|
|
\membersection{wxMemoryOutputStream::CopyTo}
|
|
|
|
|
|
|
|
\constfunc{size\_t}{CopyTo}{\param{char *}{buffer}, \param{size\_t }{len}}
|
|
|
|
|
|
|
|
CopyTo allowed you to transfer data from the internal buffer of
|
1999-12-24 18:40:13 -05:00
|
|
|
wxMemoryOutputStream to an external buffer. {\it len} specifies the size of
|
1999-08-01 03:26:36 -04:00
|
|
|
the buffer.
|
|
|
|
|
|
|
|
\wxheading{Returned value}
|
|
|
|
|
|
|
|
CopyTo returns the number of bytes copied to the buffer. Generally it is either
|
|
|
|
len or the size of the stream buffer.
|
1999-08-05 18:05:15 -04:00
|
|
|
|