toUShort
Converts this Byte value to UShort.
If this value is positive, the resulting UShort
value represents the same numerical value as this Byte
.
The least significant 8 bits of the resulting UShort
value are the same as the bits of this Byte
value,
whereas the most significant 8 bits are filled with the sign bit of this value.
Converts this Int value to UShort.
If this value is positive and less than or equals to UShort.MAX_VALUE, the resulting UShort
value represents
the same numerical value as this Int
.
The resulting UShort
value is represented by the least significant 16 bits of this Int
value.
Converts this Long value to UShort.
If this value is positive and less than or equals to UShort.MAX_VALUE, the resulting UShort
value represents
the same numerical value as this Long
.
The resulting UShort
value is represented by the least significant 16 bits of this Long
value.