Public Member Functions | Protected Attributes | Friends

VgEngine::VgBinaryBuffer Class Reference

The VgBinaryBuffer class is used to manipulate binary data. More...

Inheritance diagram for VgEngine::VgBinaryBuffer:
Inheritance graph
[legend]
Collaboration diagram for VgEngine::VgBinaryBuffer:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 VgBinaryBuffer ()
 Constructor.
 VgBinaryBuffer (char *pData, UInt pLength, bool pVgBinaryBufferDoesDelete=true)
 Constructor.
virtual ~VgBinaryBuffer ()
 Destructor.
virtual UInt getLength () const
 Retrieves the buffer length.
virtual const char * getData () const
 Retrieves the buffer's data (const version).

Protected Attributes

Private * mPrivate
 Private data for this buffer.

Friends

class VgObjectBridge

Detailed Description

The VgBinaryBuffer class is used to manipulate binary data.

A VgBinaryBuffer inherits from VgReferenced, so if it's correctly used (see documentation of VgRefPtr) it will be automatically deleted when it's no longer referenced (except if pVgBinaryBufferDoesDelete is false at its creation, as should be the case for static buffers).

Date:
25/02/2010

Constructor & Destructor Documentation

VgEngine::VgBinaryBuffer::VgBinaryBuffer (  )

Constructor.

VgEngine::VgBinaryBuffer::VgBinaryBuffer ( char *  pData,
UInt  pLength,
bool  pVgBinaryBufferDoesDelete = true 
)

Constructor.

Parameters:
pDataThe buffer (must be allocated using new [] because it will be deleted using delete [], except if pData is a static data, in this case be careful to use the pVgBinaryBufferDoesDelete flag).
pLengthThe buffer length in bytes.
pVgBinaryBufferDoesDeleteThis flag indicates whether the buffer will delete the data when it's no longer used (default is true).
virtual VgEngine::VgBinaryBuffer::~VgBinaryBuffer (  ) [virtual]

Destructor.


Member Function Documentation

virtual const char* VgEngine::VgBinaryBuffer::getData (  ) const [virtual]

Retrieves the buffer's data (const version).

virtual UInt VgEngine::VgBinaryBuffer::getLength (  ) const [virtual]

Retrieves the buffer length.


Friends And Related Function Documentation

friend class VgObjectBridge [friend]

Member Data Documentation

Private* VgEngine::VgBinaryBuffer::mPrivate [protected]

Private data for this buffer.


The documentation for this class was generated from the following file:
VisioDevKit 2.0, Visioglobe® 2013