Utility class to perform common unsigned conversion algorithms. More...
Static Public Member Functions | |
| static long | toUnsignedInt (int input) |
| Converts the specified int into an unsigned long. | |
| static int | toUnsignedShort (short input) |
| Converts the specified short into an unsigned integer. | |
| static short | toUnsignedByte (byte input) |
| Converts the specified byte into an unsigned short. | |
Utility class to perform common unsigned conversion algorithms.
| 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.
| input |
|
| static long de.desy.tine.dataUtils.UnsignedUtils.toUnsignedInt | ( | int | input | ) | [static] |
Converts the specified int into an unsigned long.
The least significant int (32 bits) of the long will be identical to the int (32 bits) provided, and the most significant int (32 bits) of the long will be zero.
| input |
|
| 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.
| input |
|
1.7.4