FSUIPC Client DLL
.NET interface for FSUIPC
|
Manages an array of bit values, which are represented as Booleans, where true indicates that the bit is on (1) and false indicates the bit is off (0). More...
Public Member Functions | |
bool | HasChanged (int Index) |
Returns a boolean indicating if the specified bit was changed during or since the last FSUIPCConnection.Process() call. | |
FsBitArray (int length) | |
Initializes a new instance of the FsBitArray class that can hold the specified number of bit values, which are initially set to false. | |
FsBitArray (byte[] bytes) | |
Initializes a new instance of the FsBitArray class that contains bit values copied from the specified array of bytes. | |
FsBitArray (bool[] values) | |
Initializes a new instance of the FsBitArray class that contains bit values copied from the specified array of Booleans. | |
FsBitArray (int[] values) | |
Initializes a new instance of the FsBitArray class that contains bit values copied from the specified array of 32-bit integers. | |
FsBitArray (BitArray bits) | |
Initializes a new instance of the FsBitArray class that contains bit values copied from the specified System.Collections.BitArray. | |
FsBitArray (FsBitArray bits) | |
Initializes a new instance of the FsBitArray class that contains bit values copied from the specified FsBitArray. | |
FsBitArray (int length, bool defaultValue) | |
Initializes a new instance of the FsBitArray class that can hold the specified number of bit values, which are initially set to the specified value. | |
FsBitArray | And (FsBitArray value) |
Performs the bitwise AND operation on the elements in the current FsBitArray against the corresponding elements in the specified FsBitArray. | |
object | Clone () |
Creates a shallow copy of the FsBitArray. | |
void | CopyTo (Array array, int index) |
Copies the entire FsBitArray to a compatible one-dimensional System.Array, starting at the specified index of the target array. | |
bool | Get (int index) |
Gets the value of the bit at a specific position in the FsBitArray. | |
IEnumerator | GetEnumerator () |
Returns an enumerator that iterates through the FsBitArray. | |
FsBitArray | Not () |
Inverts all the bit values in the current FsBitArray, so that elements set to true are changed to false, and elements set to false are changed to true. | |
FsBitArray | Or (FsBitArray value) |
Performs the bitwise OR operation on the elements in the current FsBitArray against the corresponding elements in the specified FsBitArray. | |
void | Set (int index, bool value) |
Sets the bit at a specific position in the FsBitArray to the specified value. | |
void | SetAll (bool value) |
Sets all bits in the FsBitArray to the specified value. | |
FsBitArray | Xor (FsBitArray value) |
Performs the bitwise exclusive OR operation on the elements in the current FsBitArray against the corresponding elements in the specified FsBitArray. | |
Properties | |
BitArray | BitArray [get] |
Returns the underlying native, .NET System.Collections.BitArray associated with this FsBitArray. | |
bool[] | Changed [get] |
Returns an array of booleans indicating if the corresponding bit was changed during the last FSUIPCConnection.Process() call. | |
bool | this[int index] [get, set] |
Gets or sets the value of the bit at a specific position in the FsBitArray. | |
object | SyncRoot [get] |
Gets an object that can be used to synchronize access to the FsBitArray. | |
int | Count [get] |
Gets the number of elements contained in the FsBitArray. | |
int | Length [get, set] |
Gets or sets the number of elements in the FsBitArray. | |
bool | IsSynchronized [get] |
Gets a value indicating whether access to the FsBitArray is synchronized (thread safe). | |
bool | IsReadOnly [get] |
Gets a value indicating whether the FsBitArray is read-only. | |
Manages an array of bit values, which are represented as Booleans, where true indicates that the bit is on (1) and false indicates the bit is off (0).
|
inline |
Initializes a new instance of the FsBitArray class that can hold the specified number of bit values, which are initially set to false.
length | The number of bit values in the new FsBitArray. |
|
inline |
Initializes a new instance of the FsBitArray class that contains bit values copied from the specified array of bytes.
bytes | An array of bytes containing the values to copy, where each byte represents eight consecutive bits. |
|
inline |
Initializes a new instance of the FsBitArray class that contains bit values copied from the specified array of Booleans.
values | An array of Booleans to copy. |
|
inline |
Initializes a new instance of the FsBitArray class that contains bit values copied from the specified array of 32-bit integers.
values | An array of integers containing the values to copy, where each integer represents 32 consecutive bits. |
|
inline |
Initializes a new instance of the FsBitArray class that contains bit values copied from the specified System.Collections.BitArray.
bits | The System.Collections.BitArray to copy. |
|
inline |
Initializes a new instance of the FsBitArray class that contains bit values copied from the specified FsBitArray.
bits | The FsBitArray to copy. |
|
inline |
Initializes a new instance of the FsBitArray class that can hold the specified number of bit values, which are initially set to the specified value.
length | The number of bit values in the new FsBitArray. |
defaultValue | The Boolean value to assign to each bit. |
|
inline |
Performs the bitwise AND operation on the elements in the current FsBitArray against the corresponding elements in the specified FsBitArray.
value | The FsBitArray with which to perform the bitwise AND operation. |
|
inline |
Creates a shallow copy of the FsBitArray.
|
inline |
Copies the entire FsBitArray to a compatible one-dimensional System.Array, starting at the specified index of the target array.
array | The one-dimensional System.Array that is the destination of the elements copied from FsBitArray. The System.Array must have zero-based indexing. |
index | The zero-based index in array at which copying begins. |
|
inline |
Gets the value of the bit at a specific position in the FsBitArray.
index | The zero-based index of the value to get. |
|
inline |
Returns an enumerator that iterates through the FsBitArray.
|
inline |
Returns a boolean indicating if the specified bit was changed during or since the last FSUIPCConnection.Process() call.
Index | Ths index of the bit to test |
|
inline |
Inverts all the bit values in the current FsBitArray, so that elements set to true are changed to false, and elements set to false are changed to true.
|
inline |
Performs the bitwise OR operation on the elements in the current FsBitArray against the corresponding elements in the specified FsBitArray.
value | The FsBitArray with which to perform the bitwise OR operation. |
|
inline |
Sets the bit at a specific position in the FsBitArray to the specified value.
index | The zero-based index of the bit to set. |
value | The Boolean value to assign to the bit. |
|
inline |
Sets all bits in the FsBitArray to the specified value.
value | The Boolean value to assign to all bits. |
|
inline |
Performs the bitwise exclusive OR operation on the elements in the current FsBitArray against the corresponding elements in the specified FsBitArray.
value | The FsBitArray with which to perform the bitwise exclusive OR operation. |
|
getset |
Gets or sets the value of the bit at a specific position in the FsBitArray.
index | The zero-based index of the value to get or set. |