Go to the documentation of this file. 1 #ifndef __XRDOUCPUP_HH__
2 #define __XRDOUCPUP_HH__
16 #include <sys/types.h>
68 #define setPUP0(Type) {0, -1, 0, PT_ ## Type}
70 #define setPUP1(Name,Type,Base,Var) \
71 {offsetof(Base,Var), -1, Name, PT_ ## Type}
73 #define setPUP2(Name,Type,Base,Var,Dlen) \
74 {offsetof(Base,Var), Dlen, Name, PT_ ## Type}
91 static int Pack(
struct iovec **,
const char *,
unsigned short &buff);
98 static int Pack(
struct iovec **,
const char *,
unsigned short &,
int dlen);
104 static int Pack(
char **buff,
unsigned int data);
112 static int Pack(
char **buff,
const char *data,
int dlen=-1);
122 char *Base,
char *Work);
128 static int Unpack(
char **buff,
const char *bend,
char **data,
int &dlen);