native.Byte
Native methods on Byte.
All modules · Writing docstrings
to_int
Section titled “to_int”func to_int(self: Byte): IntConverts the byte value to Int.
func band(self: Byte, other: Byte): ByteReturns the bitwise AND of two bytes.
func ior(self: Byte, other: Byte): ByteReturns the bitwise inclusive OR of two bytes.
func xor(self: Byte, other: Byte): ByteReturns the bitwise XOR of two bytes.
func inv(self: Byte): ByteReturns the bitwise complement of a byte.
func shl(self: Byte, shift: Int): ByteShifts left with wrapping byte semantics; shift must convert to u32 or errors.
func shr(self: Byte, shift: Int): ByteShifts right with wrapping byte semantics; shift must convert to u32 or errors.
func hash(self: Byte): U64Returns this byte’s runtime hash.