INT
PCast constant for an int
To cast from an int:
val castByte = (PCast.INT shl 4) or [to]
Content copied to clipboard
You can also use the cast constants: PCast.BYTE_TO_INT, PCast.SHORT_TO_INT, PCast.INT_TO_INT, PCast.INT_TO_LONG, PCast.INT_TO_UBYTE, PCast.INT_TO_USHORT, PCast.INT_TO_UINT, PCast.INT_TO_ULONG, PCast.INT_TO_FLOAT, PCast.INT_TO_DOUBLE
To cast from an int:
val castByte = ([from] shl 4) or PCast.INT
Content copied to clipboard
You can also use the cast constants: PCast.BYTE_TO_INT, PCast.SHORT_TO_INT, PCast.INT_TO_INT, PCast.LONG_TO_INT, PCast.UBYTE_TO_INT, PCast.USHORT_TO_INT, PCast.UINT_TO_INT, PCast.ULONG_TO_INT, PCast.FLOAT_TO_INT, PCast.DOUBLE_TO_INT
Get more information about the cast byte in the PCast Bytecode Specification
Since
0.1.0