wxMemoryInputStream Class Reference
[Streams]

#include <wx/mstream.h>

Inheritance diagram for wxMemoryInputStream:

wxInputStream wxStreamBase

List of all members.


Detailed Description

Todo:
describe me.
Library:  wxBase

Category:  Streams

See also:
wxStreamBuffer, wxMemoryOutputStream

Public Member Functions

 wxMemoryInputStream (const void *data, size_t len)
 wxMemoryInputStream (const wxMemoryOutputStream &stream)
 wxMemoryInputStream (wxInputStream &stream, wxFileOffset len=wxInvalidOffset)
virtual ~wxMemoryInputStream ()
wxStreamBufferGetInputStreamBuffer () const

Constructor & Destructor Documentation

wxMemoryInputStream::wxMemoryInputStream ( const void *  data,
size_t  len 
)

Initializes a new read-only memory stream which will use the specified buffer data of length len. The stream does not take ownership of the buffer, i.e. the buffer will not be deleted in its destructor.

wxMemoryInputStream::wxMemoryInputStream ( const wxMemoryOutputStream stream  ) 

Creates a new read-only memory stream, initializing it with the data from the given output stream stream.

wxMemoryInputStream::wxMemoryInputStream ( wxInputStream stream,
wxFileOffset  len = wxInvalidOffset 
)

Creates a new read-only memory stream, initializing it with the data from the given input stream stream.

The len argument specifies the amount of data to read from the stream. Setting it to wxInvalidOffset means that the stream is to be read entirely (i.e. till the EOF is reached).

virtual wxMemoryInputStream::~wxMemoryInputStream (  )  [virtual]

Destructor.


Member Function Documentation

wxStreamBuffer* wxMemoryInputStream::GetInputStreamBuffer (  )  const

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



wxWidgets logo

[ top ]