| VRS - The Virtual Rendering System |
| version 3.3 |
#include <vrs/io/memorydataresource.h>

Public Types | |
| typedef std::vector< unsigned char > | Bytes |
Public Member Functions | |
| VRS_TYPEINFO (MemoryDataResource, DataResource) | |
| VRS_SERIALIZABLE (MemoryDataResource) | |
| MemoryDataResource (unsigned int size, bool isWritable=true) | |
| MemoryDataResource (const void *sourceData, unsigned int size, bool isWritable=true) | |
| MemoryDataResource (const Bytes &bytes, bool isWritable=true) | |
| void | setWritable (bool onOff) |
| virtual void * | pointer () const |
| Returns a pointer to the data array. | |
| virtual unsigned int | size () const |
| Returns the size of the data resource in bytes. | |
| virtual bool | isWritable () const |
| Data resources can be writable, otherwise are read-only. | |
| const Bytes & | bytes () const |
| Bytes & | bytes () |
Protected Member Functions | |
| MemoryDataResource () | |
| typedef std::vector<unsigned char> VRS::MemoryDataResource::Bytes |
| VRS::MemoryDataResource::MemoryDataResource | ( | unsigned int | size, | |
| bool | isWritable = true | |||
| ) |
| VRS::MemoryDataResource::MemoryDataResource | ( | const void * | sourceData, | |
| unsigned int | size, | |||
| bool | isWritable = true | |||
| ) |
| VRS::MemoryDataResource::MemoryDataResource | ( | const Bytes & | bytes, | |
| bool | isWritable = true | |||
| ) |
| VRS::MemoryDataResource::MemoryDataResource | ( | ) | [protected] |
| VRS::MemoryDataResource::VRS_TYPEINFO | ( | MemoryDataResource | , | |
| DataResource | ||||
| ) |
| VRS::MemoryDataResource::VRS_SERIALIZABLE | ( | MemoryDataResource | ) |
| void VRS::MemoryDataResource::setWritable | ( | bool | onOff | ) |
| virtual void* VRS::MemoryDataResource::pointer | ( | ) | const [virtual] |
| virtual unsigned int VRS::MemoryDataResource::size | ( | ) | const [virtual] |
| virtual bool VRS::MemoryDataResource::isWritable | ( | ) | const [virtual] |
| const Bytes& VRS::MemoryDataResource::bytes | ( | ) | const |
| Bytes& VRS::MemoryDataResource::bytes | ( | ) |