Electronics and Software
Engineering Innovation
Beam-lib  2.15.1

#include <BBuffer.h>

Inheritance diagram for BBuffer:
BBufferStore BoapPacket

Public Member Functions

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

Protected Attributes

BUInt32 odataSize
 
char * odata
 
BUInt32 osize
 

Constructor & Destructor Documentation

◆ BBuffer()

BBuffer::BBuffer ( BUInt  size = 0)

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

◆ ~BBuffer()

BBuffer::~BBuffer ( )

Member Function Documentation

◆ data()

char * BBuffer::data ( )

The data.

◆ resize()

int BBuffer::resize ( BUInt32  size)
inline

Alternative to setSize()

◆ setData()

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

Sets buffer data resized to contain the data.

◆ setSize()

int BBuffer::setSize ( BUInt32  size)

Sets the bufer size.

◆ size()

BUInt32 BBuffer::size ( )

Size of the buffer in bytes.

◆ writeData()

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

Writes data into buffer from offset pos.

Member Data Documentation

◆ odata

char* BBuffer::odata
protected

◆ odataSize

BUInt32 BBuffer::odataSize
protected

◆ osize

BUInt32 BBuffer::osize
protected

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