/// Return ownership of the given memfd slot.
Return ownership of the given memfd slot.
Return ownership of the given memfd slot .
fn return_memfd_slot(
        &self,
        instance_index: usize,
        memory_index: DefinedMemoryIndex,
        slot: MemFdSlot,
    ) {
        assert!(!slot.is_dirty());
        let idx = instance_index * self.max_memories + (memory_index.as_u32() as usize);
        *self.memfd_slots[idx].lock().unwrap() = Some(slot);
    }
fn return_memfd_slot ( & self , instance_index : usize , memory_index : DefinedMemoryIndex , slot : MemFdSlot , ) { assert ! ( slot is_dirty ( ) ) ; let idx = instance_index * self . max_memories + ( memory_index . as_u32 ( ) as usize ) ; * self . memfd_slots [ idx ] . lock ( ) . unwrap ( ) = Some ( slot ) ; }
Return ownership of the given memfd slot.
Return ownership of the given memfd slot .
&self
instance_index
usize
memory_index
DefinedMemoryIndex
slot
MemFdSlot