natix.CompactDS.BitStream32.Write C# (CSharp) Method

Write() public method

public Write ( bool x ) : void
x bool
return void
        public void Write(bool x)
        {
            if ((this.N >> 5) >= this.Buffer.Count) {
                this.Buffer.Add (0);
            }
            this[this.N] = x;
            ++this.N;
        }

Same methods

BitStream32::Write ( bool x, int times ) : void
BitStream32::Write ( int x, int numbits ) : void
BitStream32::Write ( long x, int numbits ) : void
BitStream32::Write ( uint x, int numbits ) : void
BitStream32::Write ( ulong x, int numbits ) : void

Usage Example

Example #1
0
 public void Encode(BitStream32 Buffer, int u)
 {
     if (u < 0) {
         throw new ArgumentOutOfRangeException (String.Format ("Invalid range for UnaryCoding, u: {0}", u));
     }
     Buffer.Write (false, u);
     Buffer.Write (true);
     //Buffer.Write (true, u);
     //Buffer.Write (false);
 }
All Usage Examples Of natix.CompactDS.BitStream32::Write