LibBeamApi  1.3.0
Public Member Functions | Protected Attributes
BBuffer Class Reference

#include <BBuffer.h>

Inheritance diagram for BBuffer:
BBufferStore BoapPacket

List of all members.

Public Member Functions

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

Protected Attributes

BUInt32 odataSize
char * odata
BUInt32 osize

Constructor & Destructor Documentation

BBuffer::BBuffer ( BUInt  size = 0)

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

BBuffer::~BBuffer ( )

Member Function Documentation

char * BBuffer::data ( )

The data.

Reimplemented in BoapPacket.

int BBuffer::resize ( BUInt32  size) [inline]

Alternative to setSize()

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

Sets buffer data resized to contain the data.

int BBuffer::setSize ( BUInt32  size)

Sets the bufer size.

BUInt32 BBuffer::size ( )

Size of the buffer in bytes.

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

Writes data into buffer from offset pos.


Member Data Documentation

char* BBuffer::odata [protected]

Reimplemented in BoapPacket.

BUInt32 BBuffer::osize [protected]

Reimplemented in BoapPacket.


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