mirror of
https://gitee.com/zlgopen/awtk.git
synced 2024-12-01 03:28:53 +08:00
9 lines
275 B
Forth
9 lines
275 B
Forth
assert(is_little())
|
|
assert(htonl(0x11223344) == 0x44332211)
|
|
assert(ntohl(0x11223344) == 0x44332211)
|
|
assert(htons(0x1122) == 0x2211)
|
|
assert(ntohs(0x1122) == 0x2211)
|
|
assert(htonll(0x1122334455667788)==0x8877665544332211)
|
|
assert(ntohll(0x1122334455667788)==0x8877665544332211)
|
|
|