1 % -----------------------------------------------------------------------------
3 % -----------------------------------------------------------------------------
4 \section{\class{wxMemoryInputStream
}}\label{wxmeminputstream
}
6 \wxheading{Derived from
}
8 \helpref{wxInputStream
}{wxinputstream
}
10 \wxheading{Include files
}
16 \helpref{wxStreamBuffer
}{wxstreamBuffer
}
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
}.
30 \membersection{wxMemoryInputStream::
\destruct{wxMemoryInputStream
}}
32 \func{}{\destruct{wxFileInputStream
}}{\void}
36 % -----------------------------------------------------------------------------
37 % wxMemoryOutputStream
38 % -----------------------------------------------------------------------------
39 \section{\class{wxMemoryOutputStream
}}\label{wxmemoutputstream
}
41 \wxheading{Derived from
}
43 \helpref{wxOutputStream
}{wxoutputstream
}
45 \wxheading{Include files
}
51 \helpref{wxStreamBuffer
}{wxstreamBuffer
}
56 \latexignore{\rtfignore{\wxheading{Members
}}}
58 \membersection{wxMemoryOutputStream::wxMemoryOutputStream
}
60 \func{}{wxMemoryOutputStream
}{\param{char *
}{ data = NULL
},
\param{size
\_t}{ length =
0}}
62 If
\it{data
} is NULL, then it will initialize a new empty buffer which will
67 If the buffer is created, it will be destroyed at the destruction of the
70 \membersection{wxMemoryOutputStream::
\destruct{wxMemoryOutputStream
}}
72 \func{}{\destruct{wxMemoryOutputStream
}}{\void}
76 \membersection{wxMemoryOutputStream::CopyTo
}
78 \constfunc{size
\_t}{CopyTo
}{\param{char *
}{buffer
},
\param{size
\_t }{len
}}
80 CopyTo allowed you to transfer data from the internal buffer of
81 wxMemoryOutputStream to an external buffer.
\it{len
} specifies the size of
84 \wxheading{Returned value
}
86 CopyTo returns the number of bytes copied to the buffer. Generally it is either
87 len or the size of the stream buffer.