VisioMove SDK (iOS)  2.1.22
VgEngine::VgBinaryBuffer Class Reference
Inheritance diagram for VgEngine::VgBinaryBuffer:
Inheritance graph

Public Member Functions

 VgBinaryBuffer ()
 
 VgBinaryBuffer (char *pData, UInt pLength, bool pVgBinaryBufferDoesDelete=true)
 
virtual ~VgBinaryBuffer ()
 
virtual UInt getLength () const
 
virtual const char * getData () const
 
- Public Member Functions inherited from VgEngine::VgReferenced
 VgReferenced ()
 
 VgReferenced (const VgReferenced &pThis)
 
virtual ~VgReferenced ()
 
VgReferencedoperator= (const VgReferenced &pThis)
 
void ref () const
 
int unref () const
 
int getNbReferences () const
 

Protected Attributes

Private * mPrivate
 
- Protected Attributes inherited from VgEngine::VgReferenced
int mNbReferences
 

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).

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:
VisioMove 2.1.22, Visioglobe® 2016