Interface DittoUInt


public interface DittoUInt
  • Method Summary

    Modifier and Type
    Method
    Description
    static DittoUInt
    fromIntData(int data)
    Creates a new UInt instance from the provided 32 bits of data represented as Java int value.
    static DittoUInt
    fromLong(long value)
    Creates a new UInt instance from the provided long value.
    int
    Returns the underlying 32 bits of data represented as Java itnt value.
    long
    Returns the UInt represented as long.
  • Method Details

    • toLong

      long toLong()
      Returns the UInt represented as long. The value will never be less than 0.
    • toIntData

      int toIntData()
      Returns the underlying 32 bits of data represented as Java itnt value. Keep in mind that values lower than 0 are not actually lower than 0.
    • fromLong

      static DittoUInt fromLong(long value)

      Creates a new UInt instance from the provided long value. If the provided value is positive and less than 2^32, the resulting UInt value represents the same numerical value.

      The resulting UInt value is represented by the least significant 32 bits of the provided long value.

    • fromIntData

      static DittoUInt fromIntData(int data)
      Creates a new UInt instance from the provided 32 bits of data represented as Java int value.