pub unsafe fn new_from_raw_space(slice: &mut [u8]) -> Self {
        use core::mem::size_of;
        let cap = slice.len() / size_of::<MemoryArea>();
        MemorySet {
            areas: Vec::<MemoryArea>::from_raw_parts(slice.as_ptr() as *mut MemoryArea, 0, cap),
//            page_table: None,
        }
    }
/// Used for remap_kernel() where heap alloc is unavailable
Used for remap_kernel() where heap alloc is unavailable
Used for remap_kernel () where heap alloc is unavailable
pub unsafe fn new_from_raw_space(slice: &mut [u8]) -> Self {
        use core::mem::size_of;
        let cap = slice.len() / size_of::<MemoryArea>();
        MemorySet {
            areas: Vec::<MemoryArea>::from_raw_parts(slice.as_ptr() as *mut MemoryArea, 0, cap),
//            page_table: None,
        }
    }
pub unsafe fn new_from_raw_space ( slice : & mut [ u8 ] ) -> Self { use core :: mem :: size_of ; let cap = slice . len ( ) / size_of :: < MemoryArea > ( ) ; MemorySet { areas : Vec :: < MemoryArea > :: from_raw_parts ( slice . as_ptr ( ) as * mut MemoryArea , 0 , cap ) , //            page_table: None, } }
Used for remap_kernel() where heap alloc is unavailable
Used for remap_kernel () where heap alloc is unavailable
slice
&mut [u8]
slice
&mut [u8]