SWFProcessing.SWFModeller.ABCDataTypeWriter.WriteBit C# (CSharp) Method

WriteBit() public method

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

            if (++this.bitCount == 8)
            {
                this.Align8();
            }
        }