#include <ScaleViz/misc/SoMemoryBuffer.h>
Public Member Functions | |
SoMemoryBuffer () | |
SoMemoryBuffer (char *data, const size_t size, const size_t nbElement=1, char *externalPointer=NULL) | |
SoMemoryBuffer (SoMemoryObject *memObj) | |
virtual | ~SoMemoryBuffer () |
void | setSize (const size_t size, const size_t nbElement=1) |
size_t | getSize () const |
size_t | getNbElement () const |
char * | getPointer () const |
char * | getExternalPointer () const |
SoMemoryBuffer::SoMemoryBuffer | ( | ) |
Default constructor.
SoMemoryBuffer::SoMemoryBuffer | ( | char * | data, | |
const size_t | size, | |||
const size_t | nbElement = 1 , |
|||
char * | externalPointer = NULL | |||
) |
constructor form a user memory area
SoMemoryBuffer::SoMemoryBuffer | ( | SoMemoryObject * | memObj | ) |
Constructor: take a memory Object (including smart ref pointer).
virtual SoMemoryBuffer::~SoMemoryBuffer | ( | ) | [virtual] |
Destructor.
char * SoMemoryBuffer::getExternalPointer | ( | ) | const [inline] |
Returns external pointer attached to this buffer.
size_t SoMemoryBuffer::getNbElement | ( | ) | const [inline] |
Returns number of element.
char * SoMemoryBuffer::getPointer | ( | ) | const [inline] |
Returns direct pointer to data.
size_t SoMemoryBuffer::getSize | ( | void | ) | const [inline] |
Returns size in bytes.
void SoMemoryBuffer::setSize | ( | const size_t | size, | |
const size_t | nbElement = 1 | |||
) |
setup functions