/// Create a new MemFdSlot. Assumes that there is an anonymous
/// mmap backing in the given range to start.
Create a new MemFdSlot. Assumes that there is an anonymous
mmap backing in the given range to start.
Create a new MemFdSlot . Assumes that there is an anonymous mmap backing in the given range to start .
pub(crate) fn create(base_addr: *mut c_void, initial_size: usize, static_size: usize) -> Self {
        let base = base_addr as usize;
        MemFdSlot {
            base,
            static_size,
            initial_size,
            cur_size: initial_size,
            image: None,
            dirty: false,
            clear_on_drop: true,
        }
    }
pub ( crate ) fn create ( base_addr : * mut c_void , initial_size : usize , static_size : usize ) -> Self { let base = base_addr as usize ; MemFdSlot { base , static_size , initial_size , cur_size : initial_size , image : None , dirty : false , clear_on_drop : true , } }
Create a new MemFdSlot.
Create a new MemFdSlot .
base_addr
*mut c_void
initial_size
usize
static_size
usize