1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
Reverses the byte order of the integer. # Examples Basic usage: ``` # use ::exint::primitive::*; # ::exint::uint! { use exint::Wrapping; let n = Wrapping(0x123456_i24); let m = n.swap_bytes(); assert_eq!(m, Wrapping(0x563412_i24)); # } ```