1 #ifndef __XRDRMCDATA_HH__
2 #define __XRDRMCDATA_HH__
59 int Read (
char *Buffer,
long long Offset,
int Length);
61 static int setAPR(aprParms &Dest, aprParms &Src,
int pSize);
65 int Trunc(
long long Offset);
67 int Write(
char *Buffer,
long long Offset,
int Length);
70 long long vn,
int opts);
74 void QueuePR(
long long SegOffs,
int rLen,
int prHow,
int isAuto=0);
76 char *Buffer,
long long Offs,
int Length);
85 inline void UnLock() {
if (myLock) {myLock->UnLock(myUsage); myLock = 0;}}
89 ~MrSw() {
if (myLock) myLock->UnLock(myUsage);}
121 static const int okRW = 1;
122 static const int xqRW = 2;
126 XrdRmcReal::prTask prReq;
131 static const int prRRMax= 5;
132 long long prRR[prRRMax];
135 static const int prMax = 8;
136 static const int prRun = 1;
137 static const int prWait = 2;
139 static const int prLRU = 1;
140 static const int prSUSE = 2;
141 static const int prSKIP = 3;
145 long long prBeg[prMax];
146 long long prEnd[prMax];
virtual const char * Path()=0
virtual int Read(char *buff, long long offs, int rlen)=0
virtual void Preread(long long offs, int rlen, int opts=0)
virtual long long FSize()=0
int Read(char *Buffer, long long Offset, int Length)
int Trunc(long long Offset)
XrdRmcData(XrdRmcReal *cP, XrdOucCacheIO *ioP, long long vn, int opts)
int Write(char *Buffer, long long Offset, int Length)
bool Detach(XrdOucCacheIOCD &iocd)
static int setAPR(aprParms &Dest, aprParms &Src, int pSize)
void Lock(const XrdSysXS_Type usage)