1 % -----------------------------------------------------------------------------
3 % -----------------------------------------------------------------------------
4 \section{\class{wxMemoryInputStream
}}\label{wxmeminputstream
}
6 \wxheading{Derived from
}
8 \helpref{wxInputStream
}{wxinputstream
}
10 \wxheading{Include files
}
16 \helpref{wxBase
}{librarieslist
}
20 \helpref{wxStreamBuffer
}{wxstreambuffer
},
\helpref{wxMemoryOutputStream
}{wxmemoutputstream
}
25 \latexignore{\rtfignore{\wxheading{Members
}}}
27 \membersection{wxMemoryInputStream::wxMemoryInputStream
}\label{wxmemoryinputstreamctor
}
29 \func{}{wxMemoryInputStream
}{\param{const char *
}{ data
},
\param{size
\_t}{ len
}}
31 Initializes a new read-only memory stream which will use the specified buffer
32 {\it data
} of length
{\it len
}. The stream does not take ownership of the
33 buffer, i.e. the buffer will not be deleted in its destructor.
35 \func{}{wxMemoryInputStream
}{\param{const wxMemoryOutputStream&
}{ stream
}}
37 Creates a new read-only memory stream, initializing it with the
38 data from the given output stream
\arg{stream
}.
40 \func{}{wxMemoryInputStream
}{\param{wxInputStream\&
}{ stream
},
\param{wxFileOffset
}{ len = wxInvalidOffset
}}
42 Creates a new read-only memory stream, initializing it with the
43 data from the given input stream
\arg{stream
}.
45 The
\arg{len
} argument specifies the amount of data to read from
46 the
\arg{stream
}. Setting it to
{\it wxInvalidOffset
} means that
47 the
\arg{stream
} is to be read entirely (i.e. till the EOF is reached).
50 \membersection{wxMemoryInputStream::
\destruct{wxMemoryInputStream
}}\label{wxmemoryinputstreamdtor
}
52 \func{}{\destruct{wxMemoryInputStream
}}{\void}
56 \membersection{wxMemoryInputStream::GetInputStreamBuffer
}\label{wxmemoryinputstreamgetistrmbuf
}
58 \constfunc{wxStreamBuffer *
}{GetInputStreamBuffer
}{\void}
60 Returns the pointer to the stream object used as an internal buffer
63 % -----------------------------------------------------------------------------
64 % wxMemoryOutputStream
65 % -----------------------------------------------------------------------------
66 \section{\class{wxMemoryOutputStream
}}\label{wxmemoutputstream
}
68 \wxheading{Derived from
}
70 \helpref{wxOutputStream
}{wxoutputstream
}
72 \wxheading{Include files
}
78 \helpref{wxBase
}{librarieslist
}
82 \helpref{wxStreamBuffer
}{wxstreambuffer
}
87 \latexignore{\rtfignore{\wxheading{Members
}}}
89 \membersection{wxMemoryOutputStream::wxMemoryOutputStream
}\label{wxmemoryoutputstreamctor
}
91 \func{}{wxMemoryOutputStream
}{\param{char *
}{ data = NULL
},
\param{size
\_t}{ length =
0}}
93 If
{\it data
} is NULL, then it will initialize a new empty buffer which will
98 If the buffer is created, it will be destroyed at the destruction of the
101 \membersection{wxMemoryOutputStream::
\destruct{wxMemoryOutputStream
}}\label{wxmemoryoutputstreamdtor
}
103 \func{}{\destruct{wxMemoryOutputStream
}}{\void}
107 \membersection{wxMemoryOutputStream::CopyTo
}\label{wxmemoryoutputstreamcopyto
}
109 \constfunc{size
\_t}{CopyTo
}{\param{char *
}{buffer
},
\param{size
\_t }{len
}}
111 CopyTo allowed you to transfer data from the internal buffer of
112 wxMemoryOutputStream to an external buffer.
{\it len
} specifies the size of
115 \wxheading{Returned value
}
117 CopyTo returns the number of bytes copied to the buffer. Generally it is either
118 len or the size of the stream buffer.
120 \membersection{wxMemoryOutputStream::GetOutputStreamBuffer
}\label{wxmemoryoutputstreamgetostrmbuf
}
122 \constfunc{wxStreamBuffer *
}{GetOutputStreamBuffer
}{\void}
124 Returns the pointer to the stream object used as an internal buffer