Метод | Описание | |
---|---|---|
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 |
Метод | Описание | |
---|---|---|
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 | ||
Результат | System.Diagnostics |
public BitArray ( bool values ) : System.Diagnostics | ||
values | bool | |
Результат | System.Diagnostics |
public BitArray ( byte bytes ) : System.Diagnostics | ||
bytes | byte | |
Результат | System.Diagnostics |
public BitArray ( int length ) : System.Diagnostics | ||
length | int | |
Результат | System.Diagnostics |
public BitArray ( int length, bool defaultValue ) : System.Diagnostics | ||
length | int | |
defaultValue | bool | |
Результат | System.Diagnostics |
public CopyTo ( Array array, int index ) : void | ||
array | Array | |
index | int | |
Результат | void |
public Set ( int index, bool value ) : void | ||
index | int | |
value | bool | |
Результат | void |