Macro byteorder::write_slice

source ยท
macro_rules! write_slice {
    ($src:expr, $dst:expr, $ty:ty, $to_bytes:ident) => { ... };
}
Expand description

Copies a &[$ty] $src into a &mut u8 $dst for the endianness given by $from_bytes (must be either from_be_bytes or from_le_bytes).

Panics if $src.len() * size_of::<$ty>() != $dst.len().