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

Copies $size bytes from a number $n to a &mut u8 $dst. $ty represents the numeric type of $n and $which must be either to_be or to_le, depending on which endianness one wants to use when writing to $dst.

This macro is only safe to call when $ty is a numeric type and $size == size_of::<$ty>() and where $dst is a &mut u8.