]>
git.saurik.com Git - wxWidgets.git/blob - interface/mstream.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: documentation for wxMemoryOutputStream class
4 // Author: wxWidgets team
6 // Licence: wxWindows license
7 /////////////////////////////////////////////////////////////////////////////
10 @class wxMemoryOutputStream
20 class wxMemoryOutputStream
: public wxOutputStream
24 If @a data is @NULL, then it will initialize a new empty buffer which will
27 wxMemoryOutputStream(char* data
= NULL
, size_t length
= 0);
32 ~wxMemoryOutputStream();
35 CopyTo allowed you to transfer data from the internal buffer of
36 wxMemoryOutputStream to an external buffer. @a len specifies the size of
39 size_t CopyTo(char* buffer
, size_t len
) const;
42 Returns the pointer to the stream object used as an internal buffer
45 wxStreamBuffer
* GetOutputStreamBuffer() const;
50 @class wxMemoryInputStream
58 wxStreamBuffer, wxMemoryOutputStream
60 class wxMemoryInputStream
: public wxInputStream
65 Creates a new read-only memory stream, initializing it with the
66 data from the given input stream @e stream.
67 The @a len argument specifies the amount of data to read from
68 the @e stream. Setting it to @e wxInvalidOffset means that
69 the @a stream is to be read entirely (i.e. till the EOF is reached).
71 wxMemoryInputStream(const char* data
, size_t len
);
72 wxMemoryInputStream(const wxMemoryOutputStream
& stream
);
73 wxMemoryInputStream(wxInputStream
& stream
,
74 wxFileOffset len
= wxInvalidOffset
);
80 ~wxMemoryInputStream();
83 Returns the pointer to the stream object used as an internal buffer
86 wxStreamBuffer
* GetInputStreamBuffer() const;