3 lines
66 B
Plaintext
Raw Normal View History

htons(num Int) -> Int {
return ((num & 0xFF) << 8) | (num >> 8)
}