3 lines
No EOL
66 B
Text
3 lines
No EOL
66 B
Text
htons(num int) -> int {
|
|
return ((num & 0xFF) << 8) | (num >> 8)
|
|
} |