38#include <netinet/in.h>
47void FieldClass::Clear(
void)
112 strncpy(ID,
id,
sizeof(ID));
115 Data =
new char[Size];
116 memcpy(Data, &data, Size);
124 strncpy(ID,
id,
sizeof(ID));
127 Data =
new char[Size];
128 memcpy(Data, &data, Size);
136 strncpy(ID,
id,
sizeof(ID));
139 Data =
new char[Size];
140 memcpy(Data, &data, Size);
148 strncpy(ID,
id,
sizeof(ID));
151 Data =
new char[Size];
152 memcpy(Data, &data, Size);
160 strncpy(ID,
id,
sizeof(ID));
163 Data =
new char[Size];
164 memcpy(Data, &data, Size);
172 strncpy(ID,
id,
sizeof(ID));
175 Data =
new char[Size];
176 memcpy(Data, &data, Size);
184 strncpy(ID,
id,
sizeof(ID));
186 Size = (
unsigned short)(strlen(data)+1);
187 Data =
new char[Size];
188 memcpy(Data, data, Size);
197 strncpy(ID,
id,
sizeof(ID));
199 Size = (
unsigned short)length;
200 Data =
new char[Size];
201 memcpy(Data, data, Size);
251 *((
unsigned short *)Data) = htons(*((
unsigned short *)Data));
256 *((
unsigned long *)Data) = htonl(*((
unsigned long *)Data));
269 DataType = htons(DataType);
288 DataType = ntohs(DataType);
303 *((
unsigned short *)Data) = ntohs(*((
unsigned short *)Data));
308 *((
unsigned long *)Data) = ntohl(*((
unsigned long *)Data));
void Set(char *id, char data)
#define TYPE_UNSIGNED_CHAR
#define TYPE_UNSIGNED_SHORT
#define TYPE_UNSIGNED_LONG