BBuffer Class Reference

#include <BBuffer.h>

List of all members.

Public Member Functions

 BBuffer ()
 Create and manipulate a data buffer. On creation the buffer size defaults to 1024 bytes.
 ~BBuffer ()
int setSize (uint32_t size)
 Sets the bufer size.
int setData (const void *data, uint32_t size)
 Sets buffer data resized to contain the data.
int writeData (uint32_t pos, const void *data, uint32_t size)
 Writes data into buffer from offset pos.
void * data ()
 The data.
uint32_t size ()
 Size of the buffer in bytes.

Private Attributes

uint32_t osize
uint32_t odatasize
void * odata


Constructor & Destructor Documentation

BBuffer::BBuffer (  ) 

Create and manipulate a data buffer. On creation the buffer size defaults to 1024 bytes.

BBuffer::~BBuffer (  ) 


Member Function Documentation

int BBuffer::setSize ( uint32_t  size  ) 

Sets the bufer size.

int BBuffer::setData ( const void *  data,
uint32_t  size 
)

Sets buffer data resized to contain the data.

int BBuffer::writeData ( uint32_t  pos,
const void *  data,
uint32_t  size 
)

Writes data into buffer from offset pos.

void * BBuffer::data (  ) 

The data.

uint32_t BBuffer::size (  ) 

Size of the buffer in bytes.


Member Data Documentation

uint32_t BBuffer::osize [private]

uint32_t BBuffer::odatasize [private]

void* BBuffer::odata [private]


The documentation for this class was generated from the following files:
Generated on Thu Jun 28 10:46:45 2007 for LibBeamApi by  doxygen 1.5.1