T - The type of elements that are suitable to
numeric operations.public interface IBitwise<T>
| Modifier and Type | Method and Description |
|---|---|
T |
BitwiseAnd(T x,
T y)
Performs the bitwise AND operation.
|
T |
BitwiseOr(T x,
T y)
Performs the bitwise OR operation.
|
T |
BitwiseXor(T x,
T y)
Performs the bitwise eXclusive OR operation.
|
T |
LeftShift(T x,
int count)
Shifts the bits in a specified object to the left a specified
number of positions, and returns the result.
|
T |
OnesComplement(T x)
Performs the ones complement operation by inverting all the bits in
a specified object, and returns the result.
|
T |
RightShift(T x,
int count)
Shifts the bits in a specified object to the right a specified
number of positions, and returns the result.
|
T BitwiseAnd(T x, T y)
x - The left operand in the bitwise AND operation.y - The right operand in the bitwise AND operation.T BitwiseOr(T x, T y)
x - The left operand in the bitwise OR operation.y - The right operand in the bitwise OR operation.T BitwiseXor(T x, T y)
x - The left operand in the bitwise eXclusive OR operation.y - The right operand in the bitwise eXclusive OR operation.T OnesComplement(T x)
x - The operand in the ones complement operation.T LeftShift(T x, int count)
x - An object of type T whose bit values are to be shifted.count - The number of positions to shift the bits to the left.T RightShift(T x, int count)
x - An object of type T whose bit values are to be shifted.count - The number of positions to shift the bits to the right.Copyright© 2012 Progeneric Systems, Inc. All Rights Reserved.