3 lines
66 B
Plaintext
3 lines
66 B
Plaintext
htons(num Int) -> Int {
|
|
return ((num & 0xFF) << 8) | (num >> 8)
|
|
} |