Main Page | Features | Central Services | csv-Files | Types | Transfer | Access | API-C | API-VB/ActiveX | API-Java | Examples | Downloads
Static Public Member Functions
de.desy.tine.dataUtils.UnsignedUtils Class Reference

Utility class to perform common unsigned conversion algorithms. More...

List of all members.

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.

Detailed Description

Utility class to perform common unsigned conversion algorithms.

Author:
David Melkumyan, DESY Zeuthen
Since:
08.2009

Member Function Documentation

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:
input
  • the byte to convert.
Returns:
An unsigned short representing the specified byte.
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.

Parameters:
input
  • the int to convert.
Returns:
An unsigned long representing the specified int.
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:
input
  • the short to convert.
Returns:
An unsigned int representing the specified short.

The documentation for this class was generated from the following file: