wxMemoryOutputStream Class Reference
[Streams]

#include <wx/mstream.h>

Inheritance diagram for wxMemoryOutputStream:

wxOutputStream wxStreamBase

List of all members.


Detailed Description

Todo:
describe me.
Library:  wxBase

Category:  Streams

See also:
wxStreamBuffer

Public Member Functions

 wxMemoryOutputStream (void *data=NULL, size_t length=0)
virtual ~wxMemoryOutputStream ()
size_t CopyTo (void *buffer, size_t len) const
wxStreamBufferGetOutputStreamBuffer () const

Constructor & Destructor Documentation

wxMemoryOutputStream::wxMemoryOutputStream ( void *  data = NULL,
size_t  length = 0 
)

If data is NULL, then it will initialize a new empty buffer which will grow if required.

Warning:
If the buffer is created, it will be destroyed at the destruction of the stream.

virtual wxMemoryOutputStream::~wxMemoryOutputStream (  )  [virtual]

Destructor.


Member Function Documentation

size_t wxMemoryOutputStream::CopyTo ( void *  buffer,
size_t  len 
) const

Allows you to transfer data from the internal buffer of wxMemoryOutputStream to an external buffer. len specifies the size of the buffer.

wxStreamBuffer* wxMemoryOutputStream::GetOutputStreamBuffer (  )  const

Returns the pointer to the stream object used as an internal buffer for that stream.



wxWidgets logo

[ top ]