Class BitArrayExtensions
Extension methods for the System.Collections.BitArray class.
Inheritance
System.Object
BitArrayExtensions
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Net.Codecrete.QrCodeGenerator
Assembly: QrCodeGenerator.dll
Syntax
public static class BitArrayExtensions
Methods
| Improve this Doc View SourceAppendBits(BitArray, UInt32, Int32)
Appends the specified number bits of the specified value to this bit array.
The least significant bits of the specified value are added. They are appended in reverse order, from the most significant to the least significant one, i.e. bits 0 to len-1 are appended in the order len-1, len-2 ... 1, 0.
Requires 0 ≤ len ≤ 31, and 0 ≤ val < 2len.
Declaration
public static void AppendBits(this BitArray bitArray, uint val, int len)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.BitArray | bitArray | The BitArray instance that this method extends. |
System.UInt32 | val | The value to append. |
System.Int32 | len | The number of low-order bits in the value to append. |
Exceptions
Type | Condition |
---|---|
System.ArgumentOutOfRangeException | Value or number of bits is out of range. |
AppendData(BitArray, BitArray)
Appends the content of the specified bit array to the end of this array.
Declaration
public static void AppendData(this BitArray bitArray, BitArray otherArray)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.BitArray | bitArray | The BitArray instance that this method extends. |
System.Collections.BitArray | otherArray | The bit array to append |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | If |