public void WriteBit(bool boolBit) { if (boolBit) { uint bit = 1U << this.bitCount; this.buffer |= bit; } if (++this.bitCount == 8) { this.Align8(); } }