Software Ver.2.0 Owner's manual
Methods of the IGCBuffer Class Classes of the C++ Interface
CATC IBTrainer InfiniBand Exerciser API Reference 2-83
Methods of the IGCBuffer Class
The class
IGCBuffer
provides a buffer, which contains any number of
bytes. The class can be used to represent packets as byte streams or to
handle any byte arrays necessary. There are functions to convert
packets to buffers and vice versa. The buffer class has also functions to
save and load its content.
The following table lists all characteristic members of the
IGCBuffer
class:
IGCBuffer ( void );
~IGCBuffer ( void );
void
ReadFile ( const char * filename );
void WriteFile ( const char * filename );
void SaveFile (const char * filename);
int Cmp ( IGCBuffer & cmpBuffer ) const;
void PeekData (ig_size size, ig_int8ptr pRetData) const;
void Push ( ig_size nBits, const IGCUIntX & inVal );
void Pop ( ig_size nBits, IGCUIntX & retVal );
void PopData (ig_size size, ig_int8ptr pRetData);
void SetAt ( ig_size pos, ig_size nBits, const IGCUIntX & inVal );
ig_size Size (void) const;
void GetAt ( ig_size pos, ig_size nBits, IGCUIntX & retVal ) const;
void Fill ( ig_size size, ig_int8 fillChar );
void FillRandom (ig_size size);
void Init(ig_sizesize=0);
#include <igbuffer.h>
Characteristic Members
Include Files