SoMemoryBuffer Class Reference

#include <ScaleViz/misc/SoMemoryBuffer.h>

Inheritance diagram for SoMemoryBuffer:
SoMemoryBuffer2D

List of all members.

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

Detailed Description


Constructor & Destructor Documentation

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.


Member Function Documentation

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


The documentation for this class was generated from the following file:

Open Inventor Toolkit reference manual, generated on 12 Feb 2024
Copyright © Thermo Fisher Scientific All rights reserved.
http://www.openinventor.com/