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}}}
|
|
|
|
|
2004-09-28 07:54:59 -04:00
|
|
|
\membersection{wxMemoryInputStream::wxMemoryInputStream}\label{wxmemoryinputstreamctor}
|
1999-02-12 14:03:32 -05:00
|
|
|
|
|
|
|
\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
|
2005-08-28 12:25:43 -04:00
|
|
|
buffer, i.e. the buffer will not be deleted in its destructor.
|
1999-02-12 14:03:32 -05:00
|
|
|
|
2005-04-02 17:37:58 -05:00
|
|
|
\func{}{wxMemoryInputStream}{\param{const wxMemoryOutputStream&}{ stream}}
|
|
|
|
|
2005-08-28 12:25:43 -04:00
|
|
|
Creates a new read-only memory stream, initializing it with the
|
2005-04-02 17:37:58 -05:00
|
|
|
data from the given output stream \arg{stream}.
|
|
|
|
|
2004-09-28 07:54:59 -04:00
|
|
|
\membersection{wxMemoryInputStream::\destruct{wxMemoryInputStream}}\label{wxmemoryinputstreamdtor}
|
1999-02-12 14:03:32 -05:00
|
|
|
|
1999-12-12 12:02:50 -05:00
|
|
|
\func{}{\destruct{wxMemoryInputStream}}{\void}
|
1999-02-12 14:03:32 -05:00
|
|
|
|
|
|
|
Destructor.
|
|
|
|
|
2005-04-02 17:37:58 -05:00
|
|
|
\membersection{wxMemoryInputStream::GetInputStreamBuffer}\label{wxmemoryinputstreamgetistrmbuf}
|
|
|
|
|
|
|
|
\constfunc{wxStreamBuffer *}{GetInputStreamBuffer}{\void}
|
|
|
|
|
|
|
|
Returns the pointer to the stream object used as an internal buffer
|
|
|
|
for that stream.
|
|
|
|
|
1999-02-12 14:03:32 -05:00
|
|
|
% -----------------------------------------------------------------------------
|
|
|
|
% 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}}}
|
|
|
|
|
2004-09-28 07:54:59 -04:00
|
|
|
\membersection{wxMemoryOutputStream::wxMemoryOutputStream}\label{wxmemoryoutputstreamctor}
|
1999-02-12 14:03:32 -05:00
|
|
|
|
|
|
|
\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.
|
|
|
|
|
2004-09-28 07:54:59 -04:00
|
|
|
\membersection{wxMemoryOutputStream::\destruct{wxMemoryOutputStream}}\label{wxmemoryoutputstreamdtor}
|
1999-02-12 14:03:32 -05:00
|
|
|
|
|
|
|
\func{}{\destruct{wxMemoryOutputStream}}{\void}
|
|
|
|
|
|
|
|
Destructor.
|
1999-02-12 17:00:14 -05:00
|
|
|
|
2004-09-28 07:54:59 -04:00
|
|
|
\membersection{wxMemoryOutputStream::CopyTo}\label{wxmemoryoutputstreamcopyto}
|
1999-08-01 03:26:36 -04:00
|
|
|
|
|
|
|
\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
|
|
|
|
2005-04-02 17:37:58 -05:00
|
|
|
\membersection{wxMemoryOutputStream::GetOutputStreamBuffer}\label{wxmemoryoutputstreamgetostrmbuf}
|
|
|
|
|
|
|
|
\constfunc{wxStreamBuffer *}{GetOutputStreamBuffer}{\void}
|
|
|
|
|
|
|
|
Returns the pointer to the stream object used as an internal buffer
|
|
|
|
for that stream.
|
2005-04-03 08:01:02 -04:00
|
|
|
|