Method | Description | |
---|---|---|
And ( |
||
BitArray ( |
||
BitArray ( bool values ) : System.Diagnostics | ||
BitArray ( byte bytes ) : System.Diagnostics | ||
BitArray ( int length ) : System.Diagnostics | ||
BitArray ( int length, bool defaultValue ) : System.Diagnostics | ||
Clone ( ) : object | ||
CopyTo ( Array array, int index ) : void | ||
Get ( int index ) : bool | ||
GetEnumerator ( ) : IEnumerator | ||
Not ( ) : |
||
Or ( |
||
Set ( int index, bool value ) : void | ||
SetAll ( bool value ) : void | ||
Xor ( |
||
this ( int index ) : bool |
Method | Description | |
---|---|---|
BitArray ( ) : System.Diagnostics | ||
GetArrayLength ( int n, int div ) : int |
Used for conversion between different representations of bit array. Returns (n+(div-1))/div, rearranged to avoid arithmetic overflow. For example, in the bit to int case, the straightforward calc would be (n+31)/32, but that would cause overflow. So instead it's rearranged to ((n-1)/32) + 1, with special casing for 0. Usage: GetArrayLength(77, BitsPerInt32): returns how many ints must be allocated to store 77 bits.
|
public BitArray ( |
||
bits | ||
return | System.Diagnostics |
public BitArray ( bool values ) : System.Diagnostics | ||
values | bool | |
return | System.Diagnostics |
public BitArray ( byte bytes ) : System.Diagnostics | ||
bytes | byte | |
return | System.Diagnostics |
public BitArray ( int length ) : System.Diagnostics | ||
length | int | |
return | System.Diagnostics |
public BitArray ( int length, bool defaultValue ) : System.Diagnostics | ||
length | int | |
defaultValue | bool | |
return | System.Diagnostics |
public CopyTo ( Array array, int index ) : void | ||
array | Array | |
index | int | |
return | void |