]>
git.saurik.com Git - wxWidgets.git/blob - interface/wx/mstream.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: interface of wxMemoryOutputStream
4 // Author: wxWidgets team
6 // Licence: wxWindows license
7 /////////////////////////////////////////////////////////////////////////////
10 @class wxMemoryOutputStream
18 class wxMemoryOutputStream
: public wxOutputStream
22 If @a data is @NULL, then it will initialize a new empty buffer which will
25 wxMemoryOutputStream(char* data
= NULL
, size_t length
= 0);
30 ~wxMemoryOutputStream();
33 CopyTo allowed you to transfer data from the internal buffer of
34 wxMemoryOutputStream to an external buffer. @a len specifies the size of
37 size_t CopyTo(char* buffer
, size_t len
) const;
40 Returns the pointer to the stream object used as an internal buffer
43 wxStreamBuffer
* GetOutputStreamBuffer() const;
49 @class wxMemoryInputStream
55 @see wxStreamBuffer, wxMemoryOutputStream
57 class wxMemoryInputStream
: public wxInputStream
62 Creates a new read-only memory stream, initializing it with the
63 data from the given input stream @e stream.
64 The @a len argument specifies the amount of data to read from
65 the @e stream. Setting it to @e wxInvalidOffset means that
66 the @a stream is to be read entirely (i.e. till the EOF is reached).
68 wxMemoryInputStream(const char* data
, size_t len
);
69 wxMemoryInputStream(const wxMemoryOutputStream
& stream
);
70 wxMemoryInputStream(wxInputStream
& stream
,
71 wxFileOffset len
= wxInvalidOffset
);
77 ~wxMemoryInputStream();
80 Returns the pointer to the stream object used as an internal buffer
83 wxStreamBuffer
* GetInputStreamBuffer() const;