]>
git.saurik.com Git - wxWidgets.git/blob - interface/mstream.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: interface of wxMemoryOutputStream
4 // Author: wxWidgets team
6 // Licence: wxWindows license
7 /////////////////////////////////////////////////////////////////////////////
10 @class wxMemoryOutputStream
19 class wxMemoryOutputStream
: public wxOutputStream
23 If @a data is @NULL, then it will initialize a new empty buffer which will
26 wxMemoryOutputStream(char* data
= NULL
, size_t length
= 0);
31 ~wxMemoryOutputStream();
34 CopyTo allowed you to transfer data from the internal buffer of
35 wxMemoryOutputStream to an external buffer. @a len specifies the size of
38 size_t CopyTo(char* buffer
, size_t len
) const;
41 Returns the pointer to the stream object used as an internal buffer
44 wxStreamBuffer
* GetOutputStreamBuffer() const;
50 @class wxMemoryInputStream
57 @see wxStreamBuffer, wxMemoryOutputStream
59 class wxMemoryInputStream
: public wxInputStream
64 Creates a new read-only memory stream, initializing it with the
65 data from the given input stream @e stream.
66 The @a len argument specifies the amount of data to read from
67 the @e stream. Setting it to @e wxInvalidOffset means that
68 the @a stream is to be read entirely (i.e. till the EOF is reached).
70 wxMemoryInputStream(const char* data
, size_t len
);
71 wxMemoryInputStream(const wxMemoryOutputStream
& stream
);
72 wxMemoryInputStream(wxInputStream
& stream
,
73 wxFileOffset len
= wxInvalidOffset
);
79 ~wxMemoryInputStream();
82 Returns the pointer to the stream object used as an internal buffer
85 wxStreamBuffer
* GetInputStreamBuffer() const;