1 % -----------------------------------------------------------------------------
3 % -----------------------------------------------------------------------------
4 \section{\class{wxMemoryInputStream
}}\label{wxmeminputstream
}
6 \wxheading{Derived from
}
8 \helpref{wxInputStream
}{wxinputstream
}
10 \wxheading{Include files
}
16 \helpref{wxStreamBuffer
}{wxstreambuffer
},
\helpref{wxMemoryOutputStream
}{wxmemoutputstream
}
21 \latexignore{\rtfignore{\wxheading{Members
}}}
23 \membersection{wxMemoryInputStream::wxMemoryInputStream
}\label{wxmemoryinputstreamctor
}
25 \func{}{wxMemoryInputStream
}{\param{const char *
}{ data
},
\param{size
\_t}{ len
}}
27 Initializes a new read-only memory stream which will use the specified buffer
28 {\it data
} of length
{\it len
}. The stream does not take ownership of the
29 buffer, i.e. that it will not delete in its destructor.
31 \func{}{wxMemoryInputStream
}{\param{const wxMemoryOutputStream&
}{ stream
}}
33 Creates a new read-only memory stream, initilalizing it with the
34 data from the given output stream
\arg{stream
}.
36 \membersection{wxMemoryInputStream::
\destruct{wxMemoryInputStream
}}\label{wxmemoryinputstreamdtor
}
38 \func{}{\destruct{wxMemoryInputStream
}}{\void}
42 \membersection{wxMemoryInputStream::GetInputStreamBuffer
}\label{wxmemoryinputstreamgetistrmbuf
}
44 \constfunc{wxStreamBuffer *
}{GetInputStreamBuffer
}{\void}
46 Returns the pointer to the stream object used as an internal buffer
49 % -----------------------------------------------------------------------------
50 % wxMemoryOutputStream
51 % -----------------------------------------------------------------------------
52 \section{\class{wxMemoryOutputStream
}}\label{wxmemoutputstream
}
54 \wxheading{Derived from
}
56 \helpref{wxOutputStream
}{wxoutputstream
}
58 \wxheading{Include files
}
64 \helpref{wxStreamBuffer
}{wxstreambuffer
}
69 \latexignore{\rtfignore{\wxheading{Members
}}}
71 \membersection{wxMemoryOutputStream::wxMemoryOutputStream
}\label{wxmemoryoutputstreamctor
}
73 \func{}{wxMemoryOutputStream
}{\param{char *
}{ data = NULL
},
\param{size
\_t}{ length =
0}}
75 If
{\it data
} is NULL, then it will initialize a new empty buffer which will
80 If the buffer is created, it will be destroyed at the destruction of the
83 \membersection{wxMemoryOutputStream::
\destruct{wxMemoryOutputStream
}}\label{wxmemoryoutputstreamdtor
}
85 \func{}{\destruct{wxMemoryOutputStream
}}{\void}
89 \membersection{wxMemoryOutputStream::CopyTo
}\label{wxmemoryoutputstreamcopyto
}
91 \constfunc{size
\_t}{CopyTo
}{\param{char *
}{buffer
},
\param{size
\_t }{len
}}
93 CopyTo allowed you to transfer data from the internal buffer of
94 wxMemoryOutputStream to an external buffer.
{\it len
} specifies the size of
97 \wxheading{Returned value
}
99 CopyTo returns the number of bytes copied to the buffer. Generally it is either
100 len or the size of the stream buffer.
102 \membersection{wxMemoryOutputStream::GetOutputStreamBuffer
}\label{wxmemoryoutputstreamgetostrmbuf
}
104 \constfunc{wxStreamBuffer *
}{GetOutputStreamBuffer
}{\void}
106 Returns the pointer to the stream object used as an internal buffer