tomo/test/bytes.tm

17 lines
229 B
Plaintext
Raw Normal View History

2024-09-15 12:33:47 -07:00
func main():
!! Test bytes:
>> Byte(100)
= Byte(0x64)
2024-09-15 12:33:47 -07:00
>> Byte(0xFF)
= Byte(0xFF)
2024-11-05 12:34:01 -08:00
>> b := Byte(0x0F)
>> b:hex()
= "0F"
>> b:hex(prefix=yes)
= "0x0F"
>> b:hex(uppercase=no)
= "0f"