[src]

Function std::mem::to_be16

pub fn to_be16(x: i16) -> i16

Convert an i16 to big endian from the target's endianness.

On big endian, this is a no-op. On little endian, the bytes are swapped.