]>
git.saurik.com Git - wxWidgets.git/blob - interface/mstream.h
c3d0f02f49d71e95bd039256551b88d597cfb67b
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 @e 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. @e len specifies the size of
39 size_t CopyTo(char * buffer
, size_t len
);
42 Returns the pointer to the stream object used as an internal buffer
45 wxStreamBuffer
* GetOutputStreamBuffer();
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.
68 The @e len argument specifies the amount of data to read from
69 the @e stream. Setting it to @e wxInvalidOffset means that
70 the @e stream is to be read entirely (i.e. till the EOF is reached).
72 wxMemoryInputStream(const char * data
, size_t len
);
73 wxMemoryInputStream(const wxMemoryOutputStream
& stream
);
74 wxMemoryInputStream(wxInputStream
& stream
,
75 wxFileOffset len
= wxInvalidOffset
);
81 ~wxMemoryInputStream();
84 Returns the pointer to the stream object used as an internal buffer
87 wxStreamBuffer
* GetInputStreamBuffer();