UBYTE

const val UBYTE: UByte(source)

PCast constant for an unsigned byte

To cast from an unsigned byte:

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

You can also use the cast constants: PCast.BYTE_TO_UBYTE, PCast.SHORT_TO_UBYTE, PCast.INT_TO_UBYTE, PCast.LONG_TO_UBYTE, PCast.UBYTE_TO_UBYTE, PCast.USHORT_TO_UBYTE, PCast.UINT_TO_UBYTE, PCast.ULONG_TO_UBYTE, PCast.FLOAT_TO_UBYTE, PCast.DOUBLE_TO_UBYTE

To cast from an unsigned byte:

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

You can also use the cast constants: PCast.BYTE_TO_UBYTE, PCast.SHORT_TO_UBYTE, PCast.INT_TO_UBYTE, PCast.LONG_TO_UBYTE, PCast.UBYTE_TO_UBYTE, PCast.USHORT_TO_UBYTE, PCast.UINT_TO_UBYTE, PCast.ULONG_TO_UBYTE, PCast.FLOAT_TO_UBYTE, PCast.DOUBLE_TO_UBYTE

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

Since

0.1.0