USHORT
PCast constant for an unsigned short
To cast from an unsigned short:
val castByte = (PCast.USHORT shl 4) or [to]
Content copied to clipboard
You can also use the cast constants: PCast.BYTE_TO_USHORT, PCast.SHORT_TO_USHORT, PCast.INT_TO_USHORT, PCast.LONG_TO_USHORT, PCast.UBYTE_TO_USHORT, PCast.USHORT_TO_USHORT, PCast.UINT_TO_USHORT, PCast.ULONG_TO_USHORT, PCast.FLOAT_TO_USHORT, PCast.DOUBLE_TO_USHORT
To cast from an unsigned short:
val castByte = ([from] shl 4) or PCast.USHORT
Content copied to clipboard
You can also use the cast constants: PCast.BYTE_TO_USHORT, PCast.SHORT_TO_USHORT, PCast.INT_TO_USHORT, PCast.LONG_TO_USHORT, PCast.UBYTE_TO_USHORT, PCast.USHORT_TO_USHORT, PCast.UINT_TO_USHORT, PCast.ULONG_TO_USHORT, PCast.FLOAT_TO_USHORT, PCast.DOUBLE_TO_USHORT
Get more information about the cast byte in the PCast Bytecode Specification
Since
0.1.0