pub unsafe fn function_imports_as_mut_slice(&mut self) -> &mut [VmFunctionImportEntry] {
        // Safety: we allocated the memory correctly and the bounds are correct at this point.
        let ptr = self
            .ptr_mut_u8()
            .offset(VmContext::imported_funcs_offset(self.num_globals) as isize)
            as *mut VmFunctionImportEntry;
        slice::from_raw_parts_mut(ptr, self.num_imported_funcs as usize)
    }
/// Gets the function imports as a slice.
/// Unsafe because you might be able to get multiple mutable references.
Gets the function imports as a slice.
Unsafe because you might be able to get multiple mutable references.
Gets the function imports as a slice . Unsafe because you might be able to get multiple mutable references .
pub unsafe fn function_imports_as_mut_slice(&mut self) -> &mut [VmFunctionImportEntry] {
        // Safety: we allocated the memory correctly and the bounds are correct at this point.
        let ptr = self
            .ptr_mut_u8()
            .offset(VmContext::imported_funcs_offset(self.num_globals) as isize)
            as *mut VmFunctionImportEntry;
        slice::from_raw_parts_mut(ptr, self.num_imported_funcs as usize)
    }
pub unsafe fn function_imports_as_mut_slice ( & mut self ) -> & mut [ VmFunctionImportEntry ] { // Safety: we allocated the memory correctly and the bounds are correct at this point. let ptr = self . ptr_mut_u8 ( ) . offset ( VmContext :: imported_funcs_offset ( self . num_globals ) as isize ) as * mut VmFunctionImportEntry ; slice :: from_raw_parts_mut ( ptr , self . num_imported_funcs as usize ) }
Gets the function imports as a slice.
Gets the function imports as a slice .
&mut self
&mut self