Description
The Data class is designed to simplify working with binary and integer data with a fixed bit count. Rather than using raw integer types with
lots of bitwise AND, OR, and shift operations to set or test bit segments within integer types, the Data class provides functions to simplify
these tasks, making the operation clearer and less error prone. Functions are also provided to test advanced properties of integer types, such
as parity and the highest set bit number, and conversion functions are provided to perform tasks like sign extension. An extensive set of
custom operators are also provided to allow Data objects to be operated on directly in the same way as native integer types. The bit count of
the Data objects are taken into account when calculating the results of any operations.
Constructors
|
Name |
Description |
 |
Data |
|
Management functions
|
Name |
Description |
 |
Resize |
|
Container size properties
|
Name |
Description |
 |
GetBitMask |
|
 |
GetMaxValue |
|
 |
GetMaxValue |
|
 |
GetHexCharCount |
|
 |
GetBitCount |
|
Data conversion functions
|
Name |
Description |
 |
Convert |
|
 |
SignExtend |
|
Data segment extraction/insertion
|
Name |
Description |
 |
GetData |
|
 |
SetData |
|
 |
MSB |
|
 |
LSB |
|
 |
GetBit |
|
 |
SetBit |
|
 |
GetByteFromBottomUp |
|
 |
SetByteFromBottomUp |
|
 |
GetByteFromTopDown |
|
 |
SetByteFromTopDown |
|
 |
GetDataSegment |
|
 |
SetDataSegment |
|
Upper/Lower half functions
|
Name |
Description |
 |
GetUpperHalf |
|
 |
GetLowerHalf |
|
 |
SetUpperHalf |
|
 |
SetLowerHalf |
|
Upper/Lower bit functions
|
Name |
Description |
 |
GetUpperBits |
|
 |
GetLowerBits |
|
 |
SetUpperBits |
|
 |
SetLowerBits |
|
Data properties
|
Name |
Description |
 |
Even |
|
 |
Odd |
|
 |
Zero |
|
 |
NonZero |
|
 |
Negative |
|
 |
Positive |
|
 |
ParityEven |
|
 |
ParityOdd |
|
 |
GetSetBitCount |
|
 |
GetHighestSetBitNumber |
|
 |
GetHighestSetBitMask |
|
 |
GetLowestSetBitNumber |
|
 |
GetLowestSetBitMask |
|
Custom operators
|
Name |
Description |
 |
operators |
|