3 lines
72 B
Plaintext
Raw Normal View History

2025-02-17 17:49:42 +01:00
htons(num uint16) -> uint16 {
return ((num & 0xFF) << 8) | (num >> 8)
}