macro_rules! unsafe_write_slice_native {
    ($src:expr, $dst:expr, $ty:ty) => { ... };
}
Expand description

Copies a &[$ty] $src into a &mut u8 $dst, where $ty must be a numeric type. This panics if size_of::<$ty>() * $src.len() != $dst.len().

This macro is only safe to call when $src is a slice of numeric types and $dst is a &mut u8 and where $ty represents the type of the integers in $src.