Go to the documentation of this file. 1 #ifndef __XRDOUCPUP_HH__
2 #define __XRDOUCPUP_HH__
34 #include <sys/types.h>
86 #define setPUP0(Type) {0, -1, 0, PT_ ## Type}
88 #define setPUP1(Name,Type,Base,Var) \
89 {offsetof(Base,Var), -1, Name, PT_ ## Type}
91 #define setPUP2(Name,Type,Base,Var,Dlen) \
92 {offsetof(Base,Var), Dlen, Name, PT_ ## Type}
109 static int Pack(
struct iovec **,
const char *,
unsigned short &buff);
116 static int Pack(
struct iovec **,
const char *,
unsigned short &,
int dlen);
122 static int Pack(
char **buff,
unsigned int data);
130 static int Pack(
char **buff,
const char *data,
int dlen=-1);
140 char *Base,
char *Work);
146 static int Unpack(
char **buff,
const char *bend,
char **data,
int &dlen);