82 void set(
unsigned int nbits,
const char *array);
83 void set(
unsigned int nbits,
const G4int *array);
94 void Get(
char *array)
const;
105 void Output(std::ostream &)
const;
126 if (bitnumber >=
fNBits) {
127 unsigned int new_size = (bitnumber/8) + 1;
129 if (new_size < 100 * 1024 * 1024)
131 unsigned char *old_location =
fAllBits;
132 fAllBits =
new unsigned char[new_size];
136 delete [] old_location;
140 unsigned int loc = bitnumber/8;
141 unsigned char bit = bitnumber%8;
152 if (bitnumber >=
fNBits)
return false;
153 unsigned int loc = bitnumber/8;
155 unsigned char bit = bitnumber%8;
156 G4bool result = (value & (1<<bit)) != 0;