macro_rules! unsafe_read_slice {
    ($src:expr, $dst:expr, $size:expr, $which:ident) => { ... };
}
Expand description

Copies a &u8 $src into a &mut [] $dst for the endianness given by $which (must be either to_be or to_le).

This macro is only safe to call when $src and $dst are &u8 and &mut u8, respectively. The macro will panic if $src.len() != $size * $dst.len(), where $size represents the size of the integers encoded in $src.