Struct wasmtime_environ::VMOffsets [−][src]
pub struct VMOffsets { pub pointer_size: u8, pub num_signature_ids: u32, pub num_imported_functions: u32, pub num_imported_tables: u32, pub num_imported_memories: u32, pub num_imported_globals: u32, pub num_defined_functions: u32, pub num_defined_tables: u32, pub num_defined_memories: u32, pub num_defined_globals: u32, // some fields omitted }
Expand description
This class computes offsets to fields within VMContext
and other
related structs that JIT code accesses directly.
Fields
pointer_size: u8
The size in bytes of a pointer on the target.
num_signature_ids: u32
The number of signature declarations in the module.
num_imported_functions: u32
The number of imported functions in the module.
num_imported_tables: u32
The number of imported tables in the module.
num_imported_memories: u32
The number of imported memories in the module.
num_imported_globals: u32
The number of imported globals in the module.
num_defined_functions: u32
The number of defined functions in the module.
num_defined_tables: u32
The number of defined tables in the module.
num_defined_memories: u32
The number of defined memories in the module.
num_defined_globals: u32
The number of defined globals in the module.
Implementations
impl VMOffsets
[src]
impl VMOffsets
[src]Offsets for VMFunctionImport
.
pub fn vmfunction_import_body(&self) -> u8
[src]
pub fn vmfunction_import_body(&self) -> u8
[src]The offset of the body
field.
pub fn vmfunction_import_vmctx(&self) -> u8
[src]
pub fn vmfunction_import_vmctx(&self) -> u8
[src]The offset of the vmctx
field.
pub fn size_of_vmfunction_import(&self) -> u8
[src]
pub fn size_of_vmfunction_import(&self) -> u8
[src]Return the size of VMFunctionImport
.
impl VMOffsets
[src]
impl VMOffsets
[src]Offsets for *const VMFunctionBody
.
pub fn size_of_vmfunction_body_ptr(&self) -> u8
[src]
pub fn size_of_vmfunction_body_ptr(&self) -> u8
[src]The size of the current_elements
field.
impl VMOffsets
[src]
impl VMOffsets
[src]Offsets for VMTableImport
.
pub fn vmtable_import_from(&self) -> u8
[src]
pub fn vmtable_import_from(&self) -> u8
[src]The offset of the from
field.
pub fn vmtable_import_vmctx(&self) -> u8
[src]
pub fn vmtable_import_vmctx(&self) -> u8
[src]The offset of the vmctx
field.
pub fn size_of_vmtable_import(&self) -> u8
[src]
pub fn size_of_vmtable_import(&self) -> u8
[src]Return the size of VMTableImport
.
impl VMOffsets
[src]
impl VMOffsets
[src]Offsets for VMTableDefinition
.
pub fn vmtable_definition_base(&self) -> u8
[src]
pub fn vmtable_definition_base(&self) -> u8
[src]The offset of the base
field.
pub fn vmtable_definition_current_elements(&self) -> u8
[src]
pub fn vmtable_definition_current_elements(&self) -> u8
[src]The offset of the current_elements
field.
pub fn size_of_vmtable_definition_current_elements(&self) -> u8
[src]
pub fn size_of_vmtable_definition_current_elements(&self) -> u8
[src]The size of the current_elements
field.
pub fn size_of_vmtable_definition(&self) -> u8
[src]
pub fn size_of_vmtable_definition(&self) -> u8
[src]Return the size of VMTableDefinition
.
pub fn type_of_vmtable_definition_current_elements(&self) -> Type
[src]
pub fn type_of_vmtable_definition_current_elements(&self) -> Type
[src]The type of the current_elements
field.
impl VMOffsets
[src]
impl VMOffsets
[src]Offsets for VMMemoryImport
.
pub fn vmmemory_import_from(&self) -> u8
[src]
pub fn vmmemory_import_from(&self) -> u8
[src]The offset of the from
field.
pub fn vmmemory_import_vmctx(&self) -> u8
[src]
pub fn vmmemory_import_vmctx(&self) -> u8
[src]The offset of the vmctx
field.
pub fn size_of_vmmemory_import(&self) -> u8
[src]
pub fn size_of_vmmemory_import(&self) -> u8
[src]Return the size of VMMemoryImport
.
impl VMOffsets
[src]
impl VMOffsets
[src]Offsets for VMMemoryDefinition
.
pub fn vmmemory_definition_base(&self) -> u8
[src]
pub fn vmmemory_definition_base(&self) -> u8
[src]The offset of the base
field.
pub fn vmmemory_definition_current_length(&self) -> u8
[src]
pub fn vmmemory_definition_current_length(&self) -> u8
[src]The offset of the current_length
field.
pub fn size_of_vmmemory_definition_current_length(&self) -> u8
[src]
pub fn size_of_vmmemory_definition_current_length(&self) -> u8
[src]The size of the current_length
field.
pub fn size_of_vmmemory_definition(&self) -> u8
[src]
pub fn size_of_vmmemory_definition(&self) -> u8
[src]Return the size of VMMemoryDefinition
.
pub fn type_of_vmmemory_definition_current_length(&self) -> Type
[src]
pub fn type_of_vmmemory_definition_current_length(&self) -> Type
[src]The type of the current_length
field.
impl VMOffsets
[src]
impl VMOffsets
[src]Offsets for VMGlobalImport
.
pub fn vmglobal_import_from(&self) -> u8
[src]
pub fn vmglobal_import_from(&self) -> u8
[src]The offset of the from
field.
pub fn size_of_vmglobal_import(&self) -> u8
[src]
pub fn size_of_vmglobal_import(&self) -> u8
[src]Return the size of VMGlobalImport
.
impl VMOffsets
[src]
impl VMOffsets
[src]Offsets for VMGlobalDefinition
.
pub fn size_of_vmglobal_definition(&self) -> u8
[src]
pub fn size_of_vmglobal_definition(&self) -> u8
[src]Return the size of VMGlobalDefinition
; this is the size of the largest value type (i.e. a
V128).
impl VMOffsets
[src]
impl VMOffsets
[src]Offsets for VMSharedSignatureIndex
.
pub fn size_of_vmshared_signature_index(&self) -> u8
[src]
pub fn size_of_vmshared_signature_index(&self) -> u8
[src]Return the size of VMSharedSignatureIndex
.
impl VMOffsets
[src]
impl VMOffsets
[src]Offsets for VMInterrupts
.
pub fn vminterrupts_stack_limit(&self) -> u8
[src]
pub fn vminterrupts_stack_limit(&self) -> u8
[src]Return the offset of the stack_limit
field of VMInterrupts
pub fn vminterrupts_fuel_consumed(&self) -> u8
[src]
pub fn vminterrupts_fuel_consumed(&self) -> u8
[src]Return the offset of the fuel_consumed
field of VMInterrupts
impl VMOffsets
[src]
impl VMOffsets
[src]Offsets for VMCallerCheckedAnyfunc
.
pub fn vmcaller_checked_anyfunc_func_ptr(&self) -> u8
[src]
pub fn vmcaller_checked_anyfunc_func_ptr(&self) -> u8
[src]The offset of the func_ptr
field.
pub fn vmcaller_checked_anyfunc_type_index(&self) -> u8
[src]
pub fn vmcaller_checked_anyfunc_type_index(&self) -> u8
[src]The offset of the type_index
field.
pub fn vmcaller_checked_anyfunc_vmctx(&self) -> u8
[src]
pub fn vmcaller_checked_anyfunc_vmctx(&self) -> u8
[src]The offset of the vmctx
field.
pub fn size_of_vmcaller_checked_anyfunc(&self) -> u8
[src]
pub fn size_of_vmcaller_checked_anyfunc(&self) -> u8
[src]Return the size of VMCallerCheckedAnyfunc
.
impl VMOffsets
[src]
impl VMOffsets
[src]Offsets for VMContext
.
pub fn vmctx_interrupts(&self) -> u32
[src]
pub fn vmctx_interrupts(&self) -> u32
[src]Return the offset to the VMInterrupts
structure
pub fn vmctx_externref_activations_table(&self) -> u32
[src]
pub fn vmctx_externref_activations_table(&self) -> u32
[src]The offset of the VMExternRefActivationsTable
member.
pub fn vmctx_module_info_lookup(&self) -> u32
[src]
pub fn vmctx_module_info_lookup(&self) -> u32
[src]The offset of the *const dyn ModuleInfoLookup
member.
pub fn vmctx_signature_ids_begin(&self) -> u32
[src]
pub fn vmctx_signature_ids_begin(&self) -> u32
[src]The offset of the signature_ids
array.
pub fn vmctx_imported_functions_begin(&self) -> u32
[src]
pub fn vmctx_imported_functions_begin(&self) -> u32
[src]The offset of the tables
array.
pub fn vmctx_imported_tables_begin(&self) -> u32
[src]
pub fn vmctx_imported_tables_begin(&self) -> u32
[src]The offset of the tables
array.
pub fn vmctx_imported_memories_begin(&self) -> u32
[src]
pub fn vmctx_imported_memories_begin(&self) -> u32
[src]The offset of the memories
array.
pub fn vmctx_imported_globals_begin(&self) -> u32
[src]
pub fn vmctx_imported_globals_begin(&self) -> u32
[src]The offset of the globals
array.
pub fn vmctx_tables_begin(&self) -> u32
[src]
pub fn vmctx_tables_begin(&self) -> u32
[src]The offset of the tables
array.
pub fn vmctx_memories_begin(&self) -> u32
[src]
pub fn vmctx_memories_begin(&self) -> u32
[src]The offset of the memories
array.
pub fn vmctx_globals_begin(&self) -> u32
[src]
pub fn vmctx_globals_begin(&self) -> u32
[src]The offset of the globals
array.
pub fn vmctx_anyfuncs_begin(&self) -> u32
[src]
pub fn vmctx_anyfuncs_begin(&self) -> u32
[src]The offset of the anyfuncs
array.
pub fn vmctx_builtin_functions_begin(&self) -> u32
[src]
pub fn vmctx_builtin_functions_begin(&self) -> u32
[src]The offset of the builtin functions array.
pub fn size_of_vmctx(&self) -> u32
[src]
pub fn size_of_vmctx(&self) -> u32
[src]Return the size of the VMContext
allocation.
pub fn vmctx_vmshared_signature_id(&self, index: TypeIndex) -> u32
[src]
pub fn vmctx_vmshared_signature_id(&self, index: TypeIndex) -> u32
[src]Return the offset to VMSharedSignatureId
index index
.
pub fn vmctx_vmfunction_import(&self, index: FuncIndex) -> u32
[src]
pub fn vmctx_vmfunction_import(&self, index: FuncIndex) -> u32
[src]Return the offset to VMFunctionImport
index index
.
pub fn vmctx_vmtable_import(&self, index: TableIndex) -> u32
[src]
pub fn vmctx_vmtable_import(&self, index: TableIndex) -> u32
[src]Return the offset to VMTableImport
index index
.
pub fn vmctx_vmmemory_import(&self, index: MemoryIndex) -> u32
[src]
pub fn vmctx_vmmemory_import(&self, index: MemoryIndex) -> u32
[src]Return the offset to VMMemoryImport
index index
.
pub fn vmctx_vmglobal_import(&self, index: GlobalIndex) -> u32
[src]
pub fn vmctx_vmglobal_import(&self, index: GlobalIndex) -> u32
[src]Return the offset to VMGlobalImport
index index
.
pub fn vmctx_vmtable_definition(&self, index: DefinedTableIndex) -> u32
[src]
pub fn vmctx_vmtable_definition(&self, index: DefinedTableIndex) -> u32
[src]Return the offset to VMTableDefinition
index index
.
pub fn vmctx_vmmemory_definition(&self, index: DefinedMemoryIndex) -> u32
[src]
pub fn vmctx_vmmemory_definition(&self, index: DefinedMemoryIndex) -> u32
[src]Return the offset to VMMemoryDefinition
index index
.
pub fn vmctx_vmglobal_definition(&self, index: DefinedGlobalIndex) -> u32
[src]
pub fn vmctx_vmglobal_definition(&self, index: DefinedGlobalIndex) -> u32
[src]Return the offset to the VMGlobalDefinition
index index
.
pub fn vmctx_anyfunc(&self, index: FuncIndex) -> u32
[src]
pub fn vmctx_anyfunc(&self, index: FuncIndex) -> u32
[src]Return the offset to the VMCallerCheckedAnyfunc
for the given function
index (either imported or defined).
pub fn vmctx_vmfunction_import_body(&self, index: FuncIndex) -> u32
[src]
pub fn vmctx_vmfunction_import_body(&self, index: FuncIndex) -> u32
[src]Return the offset to the body
field in *const VMFunctionBody
index index
.
pub fn vmctx_vmfunction_import_vmctx(&self, index: FuncIndex) -> u32
[src]
pub fn vmctx_vmfunction_import_vmctx(&self, index: FuncIndex) -> u32
[src]Return the offset to the vmctx
field in *const VMFunctionBody
index index
.
pub fn vmctx_vmtable_import_from(&self, index: TableIndex) -> u32
[src]
pub fn vmctx_vmtable_import_from(&self, index: TableIndex) -> u32
[src]Return the offset to the from
field in VMTableImport
index index
.
pub fn vmctx_vmtable_definition_base(&self, index: DefinedTableIndex) -> u32
[src]
pub fn vmctx_vmtable_definition_base(&self, index: DefinedTableIndex) -> u32
[src]Return the offset to the base
field in VMTableDefinition
index index
.
pub fn vmctx_vmtable_definition_current_elements(
&self,
index: DefinedTableIndex
) -> u32
[src]
pub fn vmctx_vmtable_definition_current_elements(
&self,
index: DefinedTableIndex
) -> u32
[src]Return the offset to the current_elements
field in VMTableDefinition
index index
.
pub fn vmctx_vmmemory_import_from(&self, index: MemoryIndex) -> u32
[src]
pub fn vmctx_vmmemory_import_from(&self, index: MemoryIndex) -> u32
[src]Return the offset to the from
field in VMMemoryImport
index index
.
pub fn vmctx_vmmemory_import_vmctx(&self, index: MemoryIndex) -> u32
[src]
pub fn vmctx_vmmemory_import_vmctx(&self, index: MemoryIndex) -> u32
[src]Return the offset to the vmctx
field in VMMemoryImport
index index
.
pub fn vmctx_vmmemory_definition_base(&self, index: DefinedMemoryIndex) -> u32
[src]
pub fn vmctx_vmmemory_definition_base(&self, index: DefinedMemoryIndex) -> u32
[src]Return the offset to the base
field in VMMemoryDefinition
index index
.
pub fn vmctx_vmmemory_definition_current_length(
&self,
index: DefinedMemoryIndex
) -> u32
[src]
pub fn vmctx_vmmemory_definition_current_length(
&self,
index: DefinedMemoryIndex
) -> u32
[src]Return the offset to the current_length
field in VMMemoryDefinition
index index
.
pub fn vmctx_vmglobal_import_from(&self, index: GlobalIndex) -> u32
[src]
pub fn vmctx_vmglobal_import_from(&self, index: GlobalIndex) -> u32
[src]Return the offset to the from
field in VMGlobalImport
index index
.
pub fn vmctx_builtin_function(&self, index: BuiltinFunctionIndex) -> u32
[src]
pub fn vmctx_builtin_function(&self, index: BuiltinFunctionIndex) -> u32
[src]Return the offset to builtin function in VMBuiltinFunctionsArray
index index
.
impl VMOffsets
[src]
impl VMOffsets
[src]Offsets for VMExternData
.
pub fn vm_extern_data_ref_count() -> u32
[src]
pub fn vm_extern_data_ref_count() -> u32
[src]Return the offset for VMExternData::ref_count
.
impl VMOffsets
[src]
impl VMOffsets
[src]Offsets for VMExternRefActivationsTable
.
pub fn vm_extern_ref_activation_table_next(&self) -> u32
[src]
pub fn vm_extern_ref_activation_table_next(&self) -> u32
[src]Return the offset for VMExternRefActivationsTable::next
.
pub fn vm_extern_ref_activation_table_end(&self) -> u32
[src]
pub fn vm_extern_ref_activation_table_end(&self) -> u32
[src]Return the offset for VMExternRefActivationsTable::end
.
Trait Implementations
impl From<VMOffsetsFields> for VMOffsets
[src]
impl From<VMOffsetsFields> for VMOffsets
[src]fn from(fields: VMOffsetsFields) -> VMOffsets
[src]
fn from(fields: VMOffsetsFields) -> VMOffsets
[src]Performs the conversion.
impl Copy for VMOffsets
[src]
Auto Trait Implementations
impl RefUnwindSafe for VMOffsets
impl Send for VMOffsets
impl Sync for VMOffsets
impl Unpin for VMOffsets
impl UnwindSafe for VMOffsets
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more