Go to the documentation of this file. 1 #ifndef __XRDXROOTDREQID_HH_
2 #define __XRDXROOTDREQID_HH_
39 inline unsigned long long getID() {
return Req.ID;}
41 inline void getID(
unsigned char *sid,
int &lid,
unsigned int &linst)
42 {memcpy(sid,
Req.ids.Sid,
sizeof(
Req.ids.Sid));
43 lid =
static_cast<int>(
Req.ids.Lid);
44 linst =
Req.ids.Linst;
47 inline void setID(
unsigned long long id) {
Req.ID = id;}
49 inline void setID(
const unsigned char *sid,
int lid,
unsigned int linst)
50 {memcpy(
Req.ids.Sid, sid,
sizeof(
Req.ids.Sid));
51 Req.ids.Lid =
static_cast<unsigned short>(lid);
52 Req.ids.Linst = linst;
55 inline unsigned long long setID(
const unsigned char *sid)
56 {memcpy(
Req.ids.Sid, sid,
sizeof(
Req.ids.Sid));
60 inline unsigned char *
Stream() {
return Req.ids.Sid;}
64 {
setID(sid ? (
unsigned char *)
"\0\0" : sid, lid, linst);}
69 union {
unsigned long long ID;