Main Page | Features | Central Services | csv-Files | Types | Transfer | Access | API-C | API-.NET | API-Java | Examples | Downloads
page generated on 31.05.2023 - 04:45
Static Public Member Functions | List of all members
de.desy.tine.dataUtils.UnsignedUtils Class Reference

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. More...
 
static int toUnsignedShort (short input)
 Converts the specified short into an unsigned integer. More...
 
static short toUnsignedByte (byte input)
 Converts the specified byte into an unsigned short. More...
 

Detailed Description

Utility class to perform common unsigned conversion algorithms.

Author
David Melkumyan, DESY Zeuthen
Since
08.2009

Member Function Documentation

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

◆ toUnsignedInt()

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.

Referenced by de.desy.tine.types.IMAGE.SourceHeader.read(), and de.desy.tine.types.IMAGE.FrameHeader.read().

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

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