Function libdonet::datagram::byte_order::swap_be_16

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

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