33 fNBytes(original.fNBytes)
48 if (
this == &rhs) {
return *
this; }
90 needed > 0 &&
fAllBits[needed] == 0;)
98 unsigned char* old_location =
fAllBits;
99 fAllBits =
new unsigned char[needed];
101 std::memcpy(fAllBits, old_location, needed);
102 delete [] old_location;
357 for (
unsigned int i = 0; i <
fNBytes; ++i)
359 unsigned char val =
fAllBits[fNBytes - 1 - i];
360 for (
unsigned int j = 0; j < 8; ++j)
362 os << (bool)(val & 0x80);
373 for (
unsigned int i = 0; i <
fNBytes; ++i)
376 for (
unsigned int j = 0; j < 8; ++j)
378 if (val & 1)
printf(
" bit:%4d = 1\n", count);
399 unsigned char* newBits =
new unsigned char[nbytes];
410 unsigned int nbytes = (nBits + 7) >> 3;
415 std::memcpy(
fAllBits, array, nbytes);
433 Set(nBits, (
const char*)array);
void Output(std::ostream &) const
UBits & operator=(const UBits &rhs)
void ResetAllBits(bool value=false)
void Set(unsigned int nbits, const char *array)
UBits(unsigned int nbits=0)
const XML_Char int const XML_Char * value
void ReserveBytes(unsigned int nbytes)
printf("%d Experimental points found\n", nlines)
void Get(char *array) const