Метод | Описание | |
---|---|---|
BitArray ( ) : System | ||
BitArray ( int size ) : System | ||
Clone ( ) : object |
Erstellt ein neues Objekt, das eine Kopie der aktuellen Instanz darstellt.
|
|
Equals ( Object o ) : bool |
Determines whether the specified System.Object is equal to this instance.
|
|
GetHashCode ( ) : int |
Returns a hash code for this instance.
|
|
ToString ( ) : String |
Returns a System.String that represents this instance.
|
|
appendBit ( bool bit ) : void |
Appends the bit.
|
|
appendBitArray ( |
||
appendBits ( int value, int numBits ) : void |
Appends the least-significant bits, from value, in order from most-significant to least-significant. For example, appending 6 bits from 0x000001E will append the bits 0, 1, 1, 1, 1, 0 in that order.
|
|
clear ( ) : void |
Clears all bits (sets to false).
|
|
flip ( int i ) : void |
Flips bit i.
|
|
getNextSet ( int from ) : int |
Gets the next set.
|
|
getNextUnset ( int from ) : int |
see getNextSet(int)
|
|
isRange ( int start, int end, bool value ) : bool |
Efficient method to check if a range of bits is set, or not set.
|
|
reverse ( ) : void |
Reverses all bits in the array.
|
|
setBulk ( int i, int newBits ) : void |
Sets a block of 32 bits, starting at bit i.
|
|
setRange ( int start, int end ) : void |
Sets a range of bits.
|
|
this ( int i ) : bool | ||
toBytes ( int bitOffset, byte array, int offset, int numBytes ) : void |
Toes the bytes.
|
|
xor ( |
Метод | Описание | |
---|---|---|
BitArray ( int bits, int size ) : System | ||
ensureCapacity ( int size ) : void | ||
makeArray ( int size ) : int[] | ||
numberOfTrailingZeros ( int num ) : int |
public Equals ( Object o ) : bool | ||
o | Object | The |
Результат | bool |
public appendBitArray ( |
||
other | ||
Результат | void |
public appendBits ( int value, int numBits ) : void | ||
value | int | |
numBits | int | bits from value to append |
Результат | void |
public getNextSet ( int from ) : int | ||
from | int | first bit to check |
Результат | int |
public getNextUnset ( int from ) : int | ||
from | int | index to start looking for unset bit |
Результат | int |
public isRange ( int start, int end, bool value ) : bool | ||
start | int | start of range, inclusive. /// |
end | int | end of range, exclusive /// |
value | bool | if true, checks that bits in range are set, otherwise checks that they are not set /// |
Результат | bool |
public setBulk ( int i, int newBits ) : void | ||
i | int | first bit to set /// |
newBits | int | the new value of the next 32 bits. Note again that the least-significant bit /// corresponds to bit i, the next-least-significant to i+1, and so on. /// |
Результат | void |
public setRange ( int start, int end ) : void | ||
start | int | start of range, inclusive. |
end | int | end of range, exclusive |
Результат | void |
public toBytes ( int bitOffset, byte array, int offset, int numBytes ) : void | ||
bitOffset | int | first bit to start writing |
array | byte | array to write into. Bytes are written most-significant byte first. This is the opposite /// of the internal representation, which is exposed by BitArray |
offset | int | position in array to start writing |
numBytes | int | how many bytes to write |
Результат | void |