to_bytes 0.1.0

Serialize values into memory bytes
Documentation
1
2
3
4
5
use crate::*;

pub unsafe fn the_drop<T: Default>(b: &mut Bytes, offset: usize) {
    core::mem::take(&mut *(b.as_mut_ptr().add(offset) as *mut T));
}