Go to the documentation of this file. 1 #ifndef __XRDXROOTDREQID_HH_
2 #define __XRDXROOTDREQID_HH_
21 inline unsigned long long getID() {
return Req.ID;}
23 inline void getID(
unsigned char *sid,
int &lid,
unsigned int &linst)
24 {memcpy(sid,
Req.ids.Sid,
sizeof(
Req.ids.Sid));
25 lid =
static_cast<int>(
Req.ids.Lid);
26 linst =
Req.ids.Linst;
29 inline void setID(
unsigned long long id) {
Req.ID = id;}
31 inline void setID(
const unsigned char *sid,
int lid,
unsigned int linst)
32 {memcpy(
Req.ids.Sid, sid,
sizeof(
Req.ids.Sid));
33 Req.ids.Lid =
static_cast<unsigned short>(lid);
34 Req.ids.Linst = linst;
37 inline unsigned long long setID(
const unsigned char *sid)
38 {memcpy(
Req.ids.Sid, sid,
sizeof(
Req.ids.Sid));
42 inline unsigned char *
Stream() {
return Req.ids.Sid;}
46 {
setID(sid ? (
unsigned char *)
"\0\0" : sid, lid, linst);}
51 union {
unsigned long long ID;