Macro core::hash::sip::load_int_le

source ·
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.

Safety: this performs unchecked indexing of $buf at $i..$i+size_of::<$int_ty>(), so that must be in-bounds.