Copies the values of the bits in an array of bytes into a new BitArray.
[Visual Basic] Overloads Public Sub New( _ ByVal bytes() As Byte _ ) [C#] public BitArray( byte[] bytes ); [C++] public: BitArray( unsigned char* bytes[] ); [JScript] public function BitArray( bytes : Byte[] );
Exception Type | Condition |
---|---|
ArgumentException | bytes is a null reference object. |
The character in the first byte represents bits 0- 7, the second byte in the array represents bits 8- 15, etc. Further, the Least Significant Bit of each byte represents the lowest index value; bytes[0] & 1 represents bit 0, bytes[0] & 2 represents bit 1, bytes[0] and 4 represents bit 2, etc.
BitArray Class | BitArray Members | System.Collections Namespace | BitArray Constructor Overload List