Interface DittoUInt
public interface DittoUInt
-
Method Summary
Modifier and TypeMethodDescriptionstatic DittoUIntfromIntData(int data) Creates a new UInt instance from the provided 32 bits of data represented as Java int value.static DittoUIntfromLong(long value) Creates a new UInt instance from the provided long value.intReturns the underlying 32 bits of data represented as Java itnt value.longtoLong()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
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
Creates a new UInt instance from the provided 32 bits of data represented as Java int value.
-