mutnet 0.7.0

Unsafe-free and allocation-free, no-std network protocol parsing and in-place manipulation library.
Documentation
1
2
3
4
5
6
#[cfg(test)]
pub(crate) fn copy_into_slice(buffer: &mut [u8], data: &[u8], at: usize) {
    for (i, byte) in data.iter().enumerate() {
        buffer[at + i] = *byte;
    }
}