Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages | Examples

PG_DataContainer Class Reference

List of all members.

Detailed Description

A container for binary data.

Author:
Alexander Pipelka
This class is a container to hold binary data (imagedata, fonts,...).


Public Member Functions

 PG_DataContainer (Uint32 size)
 Constructor.

virtual ~PG_DataContainer ()
 Destructor.

Uint32 size ()
 return the number of bytes allocated by the container

char * data ()
 access to the internal data


Constructor & Destructor Documentation

PG_DataContainer::PG_DataContainer Uint32  size  ) 
 

Constructor.

Parameters:
size number of bytes to allocate
Creates a container which can hold "size" number of bytes.

virtual PG_DataContainer::~PG_DataContainer  )  [virtual]
 

Destructor.

Deletes the object and frees to allocated memory.


Member Function Documentation

char* PG_DataContainer::data  ) 
 

access to the internal data

Returns:
pointer to allocated memory

Uint32 PG_DataContainer::size  ) 
 

return the number of bytes allocated by the container

Returns:
number of bytes allocated


The ParaGUI Project - Alexander Pipelka