aboutsummaryrefslogtreecommitdiff
path: root/test/bytes.tm
blob: b312c308c2b891dbd1254dc2b47b7d89b74751ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16

func main():
    !! Test bytes:
    >> Byte(100)
    = Byte(0x64)

    >> Byte(0xFF)
    = Byte(0xFF)

    >> b := Byte(0x0F)
    >> b:hex()
    = "0F"
    >> b:hex(prefix=yes)
    = "0x0F"
    >> b:hex(uppercase=no)
    = "0f"