1 % -----------------------------------------------------------------------------
3 % -----------------------------------------------------------------------------
4 \section{\class{wxMemoryInputStream
}}\label{wxmeminputstream
}
6 \wxheading{Derived from
}
8 \helpref{wxInputStream
}{wxinputstream
}\\
9 \helpref{wxStreamBase
}{wxstreambase
}
11 \wxheading{Include files
}
17 \helpref{wxBase
}{librarieslist
}
21 \helpref{wxStreamBuffer
}{wxstreambuffer
},
\helpref{wxMemoryOutputStream
}{wxmemoutputstream
}
26 \latexignore{\rtfignore{\wxheading{Members
}}}
28 \membersection{wxMemoryInputStream::wxMemoryInputStream
}\label{wxmemoryinputstreamctor
}
30 \func{}{wxMemoryInputStream
}{\param{const char *
}{ data
},
\param{size
\_t}{ len
}}
32 Initializes 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
34 buffer, i.e. the buffer will not be deleted in its destructor.
36 \func{}{wxMemoryInputStream
}{\param{const wxMemoryOutputStream&
}{ stream
}}
38 Creates a new read-only memory stream, initializing it with the
39 data from the given output stream
\arg{stream
}.
41 \func{}{wxMemoryInputStream
}{\param{wxInputStream\&
}{ stream
},
\param{wxFileOffset
}{ len = wxInvalidOffset
}}
43 Creates a new read-only memory stream, initializing it with the
44 data from the given input stream
\arg{stream
}.
46 The
\arg{len
} argument specifies the amount of data to read from
47 the
\arg{stream
}. Setting it to
{\it wxInvalidOffset
} means that
48 the
\arg{stream
} is to be read entirely (i.e. till the EOF is reached).
51 \membersection{wxMemoryInputStream::
\destruct{wxMemoryInputStream
}}\label{wxmemoryinputstreamdtor
}
53 \func{}{\destruct{wxMemoryInputStream
}}{\void}
57 \membersection{wxMemoryInputStream::GetInputStreamBuffer
}\label{wxmemoryinputstreamgetistrmbuf
}
59 \constfunc{wxStreamBuffer *
}{GetInputStreamBuffer
}{\void}
61 Returns the pointer to the stream object used as an internal buffer
64 % -----------------------------------------------------------------------------
65 % wxMemoryOutputStream
66 % -----------------------------------------------------------------------------
67 \section{\class{wxMemoryOutputStream
}}\label{wxmemoutputstream
}
69 \wxheading{Derived from
}
71 \helpref{wxOutputStream
}{wxoutputstream
}\\
72 \helpref{wxStreamBase
}{wxstreambase
}
74 \wxheading{Include files
}
80 \helpref{wxBase
}{librarieslist
}
84 \helpref{wxStreamBuffer
}{wxstreambuffer
}
89 \latexignore{\rtfignore{\wxheading{Members
}}}
91 \membersection{wxMemoryOutputStream::wxMemoryOutputStream
}\label{wxmemoryoutputstreamctor
}
93 \func{}{wxMemoryOutputStream
}{\param{char *
}{ data = NULL
},
\param{size
\_t}{ length =
0}}
95 If
{\it data
} is NULL, then it will initialize a new empty buffer which will
100 If the buffer is created, it will be destroyed at the destruction of the
103 \membersection{wxMemoryOutputStream::
\destruct{wxMemoryOutputStream
}}\label{wxmemoryoutputstreamdtor
}
105 \func{}{\destruct{wxMemoryOutputStream
}}{\void}
109 \membersection{wxMemoryOutputStream::CopyTo
}\label{wxmemoryoutputstreamcopyto
}
111 \constfunc{size
\_t}{CopyTo
}{\param{char *
}{buffer
},
\param{size
\_t }{len
}}
113 CopyTo allowed you to transfer data from the internal buffer of
114 wxMemoryOutputStream to an external buffer.
{\it len
} specifies the size of
117 \wxheading{Returned value
}
119 CopyTo returns the number of bytes copied to the buffer. Generally it is either
120 len or the size of the stream buffer.
122 \membersection{wxMemoryOutputStream::GetOutputStreamBuffer
}\label{wxmemoryoutputstreamgetostrmbuf
}
124 \constfunc{wxStreamBuffer *
}{GetOutputStreamBuffer
}{\void}
126 Returns the pointer to the stream object used as an internal buffer