void BitVector::clearAll() { if (isInline()) m_bitsOrPointer = makeInlineBits(0); else memset(outOfLineBits()->bits(), 0, byteCount(size())); }
void BitVector::resize(size_t numBits) { if (numBits <= maxInlineBits()) { if (isInline()) return; OutOfLineBits* myOutOfLineBits = outOfLineBits(); m_bitsOrPointer = makeInlineBits(*myOutOfLineBits->bits()); OutOfLineBits::destroy(myOutOfLineBits); return; } resizeOutOfLine(numBits); }