#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 EXTRACT | ( | type, | |||
d | ) | {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, | |||
d | ) | {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);} |
Register_Class | ( | cNetCommBuffer | ) |