allocate method
Implementation
void allocate(int bits) {
int free = getFreeBits();
if (free > 0) {
_size += free;
bits -= free;
}
while (bits > 0) {
_size += min(bits, bitsPerInt);
bits = max(bits - bitsPerInt, 0);
_longs.add(0);
}
_size += bits;
}