pub fn alloc_bytes_ptr(size: usize) -> *mut u8 {
  unsafe {
    let layout = Layout::from_size_align(size, std::mem::size_of::<u8>()).unwrap();
    let ptr = alloc(layout);
    ptr
  }
}
/// Allocate size of raw memory on the heap
Allocate size of raw memory on the heap
Allocate size of raw memory on the heap
pub fn alloc_bytes_ptr(size: usize) -> *mut u8 {
  unsafe {
    let layout = Layout::from_size_align(size, std::mem::size_of::<u8>()).unwrap();
    let ptr = alloc(layout);
    ptr
  }
}
pub fn alloc_bytes_ptr ( size : usize ) -> * mut u8 { unsafe { let layout = Layout :: from_size_align ( size , std :: mem :: size_of :: < u8 > ( ) ) . unwrap ( ) ; let ptr = alloc ( layout ) ; ptr } }
Allocate size of raw memory on the heap
Allocate size of raw memory on the heap
size
usize