Utility class to perform common unsigned conversion algorithms.
More...
Utility class to perform common unsigned conversion algorithms.
- Author
- David Melkumyan, DESY Zeuthen
- Since
- 08.2009
◆ toUnsignedByte()
static short de.desy.tine.dataUtils.UnsignedUtils.toUnsignedByte |
( |
byte |
input | ) |
|
|
static |
Converts the specified byte into an unsigned short.
The least significant byte (8 bits) of the short will be identical to the byte (8 bits) provided, and the most significant byte (8 bits) of the short will be zero.
- Parameters
-
- Returns
- An unsigned short representing the specified byte.
◆ toUnsignedInt()
static long de.desy.tine.dataUtils.UnsignedUtils.toUnsignedInt |
( |
int |
input | ) |
|
|
static |
◆ toUnsignedShort()
static int de.desy.tine.dataUtils.UnsignedUtils.toUnsignedShort |
( |
short |
input | ) |
|
|
static |
Converts the specified short into an unsigned integer.
The least significant short (16 bits) of the integer will be identical to the short (16 bits) provided, and the most significant 2 bytes (16 bits) of the integer will be zero.
- Parameters
-
- Returns
- An unsigned int representing the specified short.
The documentation for this class was generated from the following file: