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
}
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 \membersection{wxMemoryInputStream::
\destruct{wxMemoryInputStream
}}
33 \func{}{\destruct{wxMemoryInputStream
}}{\void}
37 % -----------------------------------------------------------------------------
38 % wxMemoryOutputStream
39 % -----------------------------------------------------------------------------
40 \section{\class{wxMemoryOutputStream
}}\label{wxmemoutputstream
}
42 \wxheading{Derived from
}
44 \helpref{wxOutputStream
}{wxoutputstream
}
46 \wxheading{Include files
}
52 \helpref{wxStreamBuffer
}{wxstreambuffer
}
57 \latexignore{\rtfignore{\wxheading{Members
}}}
59 \membersection{wxMemoryOutputStream::wxMemoryOutputStream
}
61 \func{}{wxMemoryOutputStream
}{\param{char *
}{ data = NULL
},
\param{size
\_t}{ length =
0}}
63 If
{\it data
} is NULL, then it will initialize a new empty buffer which will
68 If the buffer is created, it will be destroyed at the destruction of the
71 \membersection{wxMemoryOutputStream::
\destruct{wxMemoryOutputStream
}}
73 \func{}{\destruct{wxMemoryOutputStream
}}{\void}
77 \membersection{wxMemoryOutputStream::CopyTo
}
79 \constfunc{size
\_t}{CopyTo
}{\param{char *
}{buffer
},
\param{size
\_t }{len
}}
81 CopyTo allowed you to transfer data from the internal buffer of
82 wxMemoryOutputStream to an external buffer.
{\it len
} specifies the size of
85 \wxheading{Returned value
}
87 CopyTo returns the number of bytes copied to the buffer. Generally it is either
88 len or the size of the stream buffer.