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. the buffer will not be deleted in its destructor.
31 \func{}{wxMemoryInputStream
}{\param{const wxMemoryOutputStream&
}{ stream
}}
33 Creates a new read-only memory stream, initializing it with the
34 data from the given output stream
\arg{stream
}.
36 \func{}{wxMemoryInputStream
}{\param{wxInputStream\&
}{ stream
},
\param{wxFileOffset
}{ len = wxInvalidOffset
}}
38 Creates a new read-only memory stream, initializing it with the
39 data from the given input stream
\arg{stream
}.
41 The
\arg{len
} argument specifies the amount of data to read from
42 the
\arg{stream
}. Setting it to
{\it wxInvalidOffset
} means that
43 the
\arg{stream
} is to be read entirely (i.e. till the EOF is reached).
46 \membersection{wxMemoryInputStream::
\destruct{wxMemoryInputStream
}}\label{wxmemoryinputstreamdtor
}
48 \func{}{\destruct{wxMemoryInputStream
}}{\void}
52 \membersection{wxMemoryInputStream::GetInputStreamBuffer
}\label{wxmemoryinputstreamgetistrmbuf
}
54 \constfunc{wxStreamBuffer *
}{GetInputStreamBuffer
}{\void}
56 Returns the pointer to the stream object used as an internal buffer
59 % -----------------------------------------------------------------------------
60 % wxMemoryOutputStream
61 % -----------------------------------------------------------------------------
62 \section{\class{wxMemoryOutputStream
}}\label{wxmemoutputstream
}
64 \wxheading{Derived from
}
66 \helpref{wxOutputStream
}{wxoutputstream
}
68 \wxheading{Include files
}
74 \helpref{wxStreamBuffer
}{wxstreambuffer
}
79 \latexignore{\rtfignore{\wxheading{Members
}}}
81 \membersection{wxMemoryOutputStream::wxMemoryOutputStream
}\label{wxmemoryoutputstreamctor
}
83 \func{}{wxMemoryOutputStream
}{\param{char *
}{ data = NULL
},
\param{size
\_t}{ length =
0}}
85 If
{\it data
} is NULL, then it will initialize a new empty buffer which will
90 If the buffer is created, it will be destroyed at the destruction of the
93 \membersection{wxMemoryOutputStream::
\destruct{wxMemoryOutputStream
}}\label{wxmemoryoutputstreamdtor
}
95 \func{}{\destruct{wxMemoryOutputStream
}}{\void}
99 \membersection{wxMemoryOutputStream::CopyTo
}\label{wxmemoryoutputstreamcopyto
}
101 \constfunc{size
\_t}{CopyTo
}{\param{char *
}{buffer
},
\param{size
\_t }{len
}}
103 CopyTo allowed you to transfer data from the internal buffer of
104 wxMemoryOutputStream to an external buffer.
{\it len
} specifies the size of
107 \wxheading{Returned value
}
109 CopyTo returns the number of bytes copied to the buffer. Generally it is either
110 len or the size of the stream buffer.
112 \membersection{wxMemoryOutputStream::GetOutputStreamBuffer
}\label{wxmemoryoutputstreamgetostrmbuf
}
114 \constfunc{wxStreamBuffer *
}{GetOutputStreamBuffer
}{\void}
116 Returns the pointer to the stream object used as an internal buffer