BYTE

const val BYTE: UByte(source)

PCast constant for a byte

To cast from a byte:

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

You can also use the cast constants: PCast.BYTE_TO_BYTE, PCast.BYTE_TO_SHORT, PCast.BYTE_TO_INT, PCast.BYTE_TO_LONG, PCast.BYTE_TO_UBYTE, PCast.BYTE_TO_USHORT, PCast.BYTE_TO_UINT, PCast.BYTE_TO_ULONG, PCast.BYTE_TO_FLOAT, PCast.BYTE_TO_DOUBLE

To cast from a byte:

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

You can also use the cast constants: PCast.BYTE_TO_BYTE, PCast.SHORT_TO_BYTE, PCast.INT_TO_BYTE, PCast.LONG_TO_BYTE, PCast.UBYTE_TO_BYTE, PCast.USHORT_TO_BYTE, PCast.UINT_TO_BYTE, PCast.ULONG_TO_BYTE, PCast.FLOAT_TO_BYTE, PCast.DOUBLE_TO_BYTE

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

Since

0.1.0