PMemoryStream Class Reference

Detailed Description

The PMemoryStream class is a byte stream whose backing store is a PByteArray.

This stream is always opened and cannot be closed.

Definition at line 28 of file PMemoryStream.h.

#include <PMemoryStream.h>

Constructor & Destructor Documentation

◆ PMemoryStream() [1/3]

PMemoryStream::PMemoryStream ( )

Construct an empty memory stream.

◆ PMemoryStream() [2/3]

PMemoryStream::PMemoryStream ( const char *  data,
papillon::int32  n 

Construct a memory stream from a byte buffer, by copying the n first bytes.

◆ PMemoryStream() [3/3]

PMemoryStream::PMemoryStream ( const PByteArray buffer)

Construct a stream from the specified PByteArray.

◆ ~PMemoryStream()

virtual PMemoryStream::~PMemoryStream ( )

Destroys this object.

Member Function Documentation

◆ GetByteArray()

PByteArray PMemoryStream::GetByteArray ( ) const

Returns the PByteArray wrapped by this stream.