Beamlib 3.3.2
This is the Beam C++ class library.
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
BBufferStore Class Reference

Create and manipulate a variable sized byte data buffer. Has functions to store and retrieve basic and extended types/classes in the binary buffer. More...

#include <BBuffer.h>

Inheritance diagram for BBufferStore:
BBuffer BoapPacket

Public Member Functions

 BBufferStore (BUInt size=0, int swapBytes=BBigEndian)
 
 ~BBufferStore ()
 
BUInt32 getPos ()
 
void setPos (BUInt32 pos)
 
BString getHexString ()
 
void setHexString (BString s)
 
int push (BInt8 v)
 
int push (BUInt8 v)
 
int push (BInt16 v)
 
int push (BUInt16 v)
 
int push (BInt32 v)
 
int push (BUInt32 v)
 
int push (BInt64 v)
 
int push (BUInt64 v)
 
int push (BFloat32 v)
 
int push (BFloat64 v)
 
int push (const BString &v)
 
int push (const BError &v)
 
int push (const BTimeStamp &v)
 
int push (const BComplex &v)
 
int push (BUInt32 nBytes, const void *data, const char *swapType="1")
 
int pop (BInt8 &v)
 
int pop (BUInt8 &v)
 
int pop (BInt16 &v)
 
int pop (BUInt16 &v)
 
int pop (BInt32 &v)
 
int pop (BUInt32 &v)
 
int pop (BInt64 &v)
 
int pop (BUInt64 &v)
 
int pop (BFloat32 &v)
 
int pop (BFloat64 &v)
 
int pop (BString &v)
 
int pop (BError &v)
 
int pop (BTimeStamp &v)
 
int pop (BComplex &v)
 
int pop (BUInt32 nBytes, void *data, const char *swapType="1")
 
- Public Member Functions inherited from BBuffer
 BBuffer (BUInt size=0)
 
 ~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 opos
 
int oswapBytes
 
- Protected Attributes inherited from BBuffer
BUInt32 odataSize
 
char * odata
 
BUInt32 osize
 

Detailed Description

Create and manipulate a variable sized byte data buffer. Has functions to store and retrieve basic and extended types/classes in the binary buffer.

Constructor & Destructor Documentation

◆ BBufferStore()

BBufferStore::BBufferStore ( BUInt  size = 0,
int  swapBytes = BBigEndian 
)

◆ ~BBufferStore()

BBufferStore::~BBufferStore ( )

Member Function Documentation

◆ getPos()

BUInt32 BBufferStore::getPos ( )

◆ setPos()

void BBufferStore::setPos ( BUInt32  pos)

◆ getHexString()

BString BBufferStore::getHexString ( )

◆ setHexString()

void BBufferStore::setHexString ( BString  s)

◆ push() [1/15]

int BBufferStore::push ( BInt8  v)

◆ push() [2/15]

int BBufferStore::push ( BUInt8  v)

◆ push() [3/15]

int BBufferStore::push ( BInt16  v)

◆ push() [4/15]

int BBufferStore::push ( BUInt16  v)

◆ push() [5/15]

int BBufferStore::push ( BInt32  v)

◆ push() [6/15]

int BBufferStore::push ( BUInt32  v)

◆ push() [7/15]

int BBufferStore::push ( BInt64  v)

◆ push() [8/15]

int BBufferStore::push ( BUInt64  v)

◆ push() [9/15]

int BBufferStore::push ( BFloat32  v)

◆ push() [10/15]

int BBufferStore::push ( BFloat64  v)

◆ push() [11/15]

int BBufferStore::push ( const BString v)

◆ push() [12/15]

int BBufferStore::push ( const BError v)

◆ push() [13/15]

int BBufferStore::push ( const BTimeStamp v)

◆ push() [14/15]

int BBufferStore::push ( const BComplex v)

◆ push() [15/15]

int BBufferStore::push ( BUInt32  nBytes,
const void *  data,
const char *  swapType = "1" 
)

◆ pop() [1/15]

int BBufferStore::pop ( BInt8 v)

◆ pop() [2/15]

int BBufferStore::pop ( BUInt8 v)

◆ pop() [3/15]

int BBufferStore::pop ( BInt16 v)

◆ pop() [4/15]

int BBufferStore::pop ( BUInt16 v)

◆ pop() [5/15]

int BBufferStore::pop ( BInt32 v)

◆ pop() [6/15]

int BBufferStore::pop ( BUInt32 v)

◆ pop() [7/15]

int BBufferStore::pop ( BInt64 v)

◆ pop() [8/15]

int BBufferStore::pop ( BUInt64 v)

◆ pop() [9/15]

int BBufferStore::pop ( BFloat32 v)

◆ pop() [10/15]

int BBufferStore::pop ( BFloat64 v)

◆ pop() [11/15]

int BBufferStore::pop ( BString v)

◆ pop() [12/15]

int BBufferStore::pop ( BError v)

◆ pop() [13/15]

int BBufferStore::pop ( BTimeStamp v)

◆ pop() [14/15]

int BBufferStore::pop ( BComplex v)

◆ pop() [15/15]

int BBufferStore::pop ( BUInt32  nBytes,
void *  data,
const char *  swapType = "1" 
)

Member Data Documentation

◆ opos

BUInt32 BBufferStore::opos
protected

◆ oswapBytes

int BBufferStore::oswapBytes
protected

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