77 inline int MaxSize()
const {
return maxBsz;}
101 int minh=1,
int maxh=16,
123 BuffSlot() : buffFree(0), size(0),
124 numbuff(0), maxbuff(0) {}
152 inline char *
Buffer()
const {
return data;}
181 inline char *
Data()
const {
return data+doff;}
191 inline char *
Data(
int &dataL)
const {dataL = dlen;
return data+doff;}
220 inline void Recycle() {buffPool->bSlot[slot].Recycle(
this);}
241 inline void SetLen(
int dataL,
int dataO=0) {dlen = dataL; doff = dataO;}
261 : data(0), dlen(0), doff(0), size(pP->bSlot[snum].size),
262 slot(snum), buffPool(pP) {}
265 : data(0), dlen(0), doff(0), size(0), slot(0), buffPool(0) {}
void trim(std::string &str)
XrdOucBuffer * Alloc(int sz)
XrdOucBuffPool(int minsz=4096, int maxsz=65536, int minh=1, int maxh=16, int rate=1)
friend class XrdOucBuffer
char * Data(int &dataL) const
XrdOucBuffer * Clone(bool trim=true)
void Recycle()
Recycle the buffer. The buffer may be reused in the future.
XrdOucBuffer * Highjack(int bPsz=0)
void SetLen(int dataL, int dataO=0)