cnetcommbuffer.cc File Reference

#include <string.h>
#include <arpa/inet.h>
#include "cnetcommbuffer.h"
#include "util.h"
#include "cobject.h"
#include "macros.h"

Defines

#define STOREARRAY(type, d, size)   {memcpy(mBuffer+mMsgSize,d,size*sizeof(type)); mMsgSize+=size*sizeof(type);}
#define EXTRACTARRAY(type, d, size)   {memcpy(d,mBuffer+mPosition,size*sizeof(type)); mPosition+=size*sizeof(type);}
#define STORE(type, d)   {memcpy(mBuffer+mMsgSize,(void*)&d,sizeof(type)); mMsgSize+=sizeof(type);}
#define EXTRACT(type, d)   {memcpy((void*)&d,mBuffer+mPosition,sizeof(type)); mPosition+=sizeof(type);}

Functions

 Register_Class (cNetCommBuffer)


Define Documentation

#define EXTRACT ( type,
 )     {memcpy((void*)&d,mBuffer+mPosition,sizeof(type)); mPosition+=sizeof(type);}

#define EXTRACTARRAY ( type,
d,
size   )     {memcpy(d,mBuffer+mPosition,size*sizeof(type)); mPosition+=size*sizeof(type);}

#define STORE ( type,
 )     {memcpy(mBuffer+mMsgSize,(void*)&d,sizeof(type)); mMsgSize+=sizeof(type);}

#define STOREARRAY ( type,
d,
size   )     {memcpy(mBuffer+mMsgSize,d,size*sizeof(type)); mMsgSize+=size*sizeof(type);}


Function Documentation

Register_Class ( cNetCommBuffer   ) 


Generated on Thu Apr 17 13:19:27 2008 for ITM OverSim by  doxygen 1.5.3