Package org.ros.math

Class Unsigned

java.lang.Object
org.ros.math.Unsigned

public class Unsigned extends Object
Provides conversions from unsigned values to bitwise equal signed values.
Author:
damonkohler@google.com (Damon Kohler)
  • Method Details

    • intToLong

      public static long intToLong(int value)
      Parameters:
      value - an unsigned Integer value
      Returns:
      a signed Long that is bitwise equal to value
    • shortToInt

      public static int shortToInt(short value)
      Parameters:
      value - an unsigned Short value
      Returns:
      a signed Integer that is bitwise equal to value
    • byteToShort

      public static short byteToShort(byte value)
      Parameters:
      value - an unsigned Byte value
      Returns:
      a signed Short that is bitwise equal to value