41 { {0x00000000, -1, -1, -2},
42 {0x00000000, 0x0000ffc0, 0x7fffffe0, 0x7fffffe0},
43 {0x00000000, 0x0000ffc0, 0x7e000000, 0x7e000000},
44 {0x00000000, 0x03ffc000, 0x07fffffe, 0x07fffffe} };
71 membuf =
new char [s.
length()];
85 membuf =
new char[b.
size];
118 membuf =
new char [s.
length()];
143 membuf =
new char [ns];
145 memcpy(membuf,nb,ns);
161 char *b =
new char[
size+1];
180 PRINT(
"//-----------------------------------------------------//");
182 PRINT(
"// XrdSutBucket DUMP //");
186 PRINT(
"// addr: " <<
this);
189 PRINT(
"// content:");
193 unsigned int nby =
size;
194 unsigned int k = 0, curpri = 0;
195 unsigned char i = 0, j = 0, l = 0;
196 for (k = 0; k < nby; k++) {
197 i = (
unsigned char)
buffer[k];
198 bool isascii = (i > 127) ? 0 : 1;
204 sprintf(chex,
" 0x%02x",(
int)(i & 0xFF));
206 if (isascii && ((
XrdSutCharMsk[0][j] & (1 << (31-l+1))) || i == 0x20)) {
214 PRINT(
"// " <<bhex<<
" "<<bpri);
216 memset(bpri,0,
sizeof(bpri));
222 while (curpri++ < 8) {
226 PRINT(
"// " <<bhex<<
" "<<bpri);
230 PRINT(
"//-----------------------------------------------------//");
const char * XrdSutBuckStr(int kbck)
static kXR_int32 XrdSutCharMsk[4][4]
const char * c_str() const
XrdSutBucket(char *bp=0, int sz=0, int ty=0)
int SetBuf(const char *nb=0, int ns=0)
void ToString(XrdOucString &s)
int operator==(const XrdSutBucket &b)
void Update(char *nb=0, int ns=0, int ty=0)