Function libdonet::datagram::byte_order::swap_le_16

source ยท
pub fn swap_le_16(v: u16) -> u16
Expand description

Swaps 2 bytes in little endian byte order to big endian. Returns the input if the processor is little endian.