Show / Hide Table of Contents

Class BitArrayExtensions

Extension methods for the BitArray class.

Inheritance
object
BitArrayExtensions
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Net.Codecrete.QrCodeGenerator
Assembly: QrCodeGenerator.dll
Syntax
public static class BitArrayExtensions

Methods

| Edit this page View Source

AppendBits(BitArray, uint, int)

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
BitArray bitArray

The BitArray instance that this method extends.

uint val

The value to append.

int len

The number of low-order bits in the value to append.

Exceptions
Type Condition
ArgumentOutOfRangeException

Value or number of bits is out of range.

| Edit this page View Source

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
BitArray bitArray

The BitArray instance that this method extends.

BitArray otherArray

The bit array to append

Exceptions
Type Condition
ArgumentNullException

If bitArray is null.

  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX