1 2 3 4 5 6 7 8 9 10 11 12 13
Returns the memory representation of this integer as a byte array in big-endian (network) byte order. # Examples Basic usage: ``` # use ::exint::primitive::*; # ::exint::uint! { assert_eq!(0x123456_u24.to_be_bytes(), [0x12, 0x34, 0x56]); # } ```