macro_rules! load_int_le { ($buf:expr, $i:expr, $int_ty:ident) => { ... }; }
Expand description
Loads an integer of the desired type from a byte stream, in LE order. Uses
copy_nonoverlapping
to let the compiler generate the most efficient way
to load it from a possibly unaligned address.
Unsafe because: unchecked indexing at i..i+size_of(int_ty)