SHORT

const val SHORT: UByte(source)

PCast constant for a short

To cast from a short:

val castByte = (PCast.SHORT shl 4) or [to]

You can also use the cast constants: PCast.BYTE_TO_SHORT, PCast.SHORT_TO_SHORT, PCast.SHORT_TO_INT, PCast.SHORT_TO_LONG, PCast.SHORT_TO_UBYTE, PCast.SHORT_TO_USHORT, PCast.SHORT_TO_UINT, PCast.SHORT_TO_ULONG, PCast.SHORT_TO_FLOAT, PCast.SHORT_TO_DOUBLE

To cast from a short:

val castByte = ([from] shl 4) or PCast.SHORT

You can also use the cast constants: PCast.BYTE_TO_SHORT, PCast.SHORT_TO_SHORT, PCast.INT_TO_SHORT, PCast.LONG_TO_SHORT, PCast.UBYTE_TO_SHORT, PCast.USHORT_TO_SHORT, PCast.UINT_TO_SHORT, PCast.ULONG_TO_SHORT, PCast.FLOAT_TO_SHORT, PCast.DOUBLE_TO_SHORT

Get more information about the cast byte in the PCast Bytecode Specification

Since

0.1.0