#include <OpenGUI_Resource.h>
Inheritance diagram for OpenGUI::Resource:

This version simply maintains a byte array of dynamic memory. If you need something fancier, just subclass this.
Public Member Functions | |
| Resource () | |
| constructor | |
| virtual | ~Resource () |
| virtual destructor | |
| virtual void | setData (unsigned char *newData, size_t newSize) |
| Sets this object's stored data to the given memory. | |
| unsigned char * | getData () |
| Returns a pointer to the held data, or 0 if there is no stored data. | |
| virtual void | setSize (size_t size) |
| Sets the size of the data buffer. The current contents will be lost. | |
| size_t | getSize () |
| Returns the size of the held data in bytes. | |
| void | release () |
| frees the data held | |
|
|
constructor
|
|
|
virtual destructor
|
|
|
Returns a pointer to the held data, or 0 if there is no stored data.
|
|
|
Returns the size of the held data in bytes.
|
|
|
frees the data held
|
|
||||||||||||
|
Sets this object's stored data to the given memory.
Reimplemented in OpenGUI::Resource_CStr. |
|
|
Sets the size of the data buffer. The current contents will be lost.
Reimplemented in OpenGUI::Resource_CStr. |