Struct wasmtime_environ::VMOffsets
source · pub struct VMOffsets { /* private fields */ }
Expand description
This class computes offsets to fields within VMContext
and other
related structs that JIT code accesses directly.
Implementations§
source§impl VMOffsets
impl VMOffsets
Offsets for VMFunctionImport
.
sourcepub fn vmfunction_import_body(&self) -> u8
pub fn vmfunction_import_body(&self) -> u8
The offset of the body
field.
sourcepub fn vmfunction_import_vmctx(&self) -> u8
pub fn vmfunction_import_vmctx(&self) -> u8
The offset of the vmctx
field.
sourcepub fn size_of_vmfunction_import(&self) -> u8
pub fn size_of_vmfunction_import(&self) -> u8
Return the size of VMFunctionImport
.
source§impl VMOffsets
impl VMOffsets
Offsets for *const VMFunctionBody
.
sourcepub fn size_of_vmfunction_body_ptr(&self) -> u8
pub fn size_of_vmfunction_body_ptr(&self) -> u8
The size of the current_elements
field.
source§impl VMOffsets
impl VMOffsets
Offsets for VMTableImport
.
sourcepub fn vmtable_import_from(&self) -> u8
pub fn vmtable_import_from(&self) -> u8
The offset of the from
field.
sourcepub fn vmtable_import_vmctx(&self) -> u8
pub fn vmtable_import_vmctx(&self) -> u8
The offset of the vmctx
field.
sourcepub fn size_of_vmtable_import(&self) -> u8
pub fn size_of_vmtable_import(&self) -> u8
Return the size of VMTableImport
.
source§impl VMOffsets
impl VMOffsets
Offsets for VMTableDefinition
.
sourcepub fn vmtable_definition_base(&self) -> u8
pub fn vmtable_definition_base(&self) -> u8
The offset of the base
field.
sourcepub fn vmtable_definition_current_elements(&self) -> u8
pub fn vmtable_definition_current_elements(&self) -> u8
The offset of the current_elements
field.
sourcepub fn size_of_vmtable_definition_current_elements(&self) -> u8
pub fn size_of_vmtable_definition_current_elements(&self) -> u8
The size of the current_elements
field.
sourcepub fn size_of_vmtable_definition(&self) -> u8
pub fn size_of_vmtable_definition(&self) -> u8
Return the size of VMTableDefinition
.
sourcepub fn type_of_vmtable_definition_current_elements(&self) -> Type
pub fn type_of_vmtable_definition_current_elements(&self) -> Type
The type of the current_elements
field.
source§impl VMOffsets
impl VMOffsets
Offsets for VMMemoryImport
.
sourcepub fn vmmemory_import_from(&self) -> u8
pub fn vmmemory_import_from(&self) -> u8
The offset of the from
field.
sourcepub fn vmmemory_import_vmctx(&self) -> u8
pub fn vmmemory_import_vmctx(&self) -> u8
The offset of the vmctx
field.
sourcepub fn size_of_vmmemory_import(&self) -> u8
pub fn size_of_vmmemory_import(&self) -> u8
Return the size of VMMemoryImport
.
source§impl VMOffsets
impl VMOffsets
Offsets for VMMemoryDefinition
.
sourcepub fn vmmemory_definition_base(&self) -> u8
pub fn vmmemory_definition_base(&self) -> u8
The offset of the base
field.
sourcepub fn vmmemory_definition_current_length(&self) -> u8
pub fn vmmemory_definition_current_length(&self) -> u8
The offset of the current_length
field.
sourcepub fn size_of_vmmemory_definition_current_length(&self) -> u8
pub fn size_of_vmmemory_definition_current_length(&self) -> u8
The size of the current_length
field.
sourcepub fn size_of_vmmemory_definition(&self) -> u8
pub fn size_of_vmmemory_definition(&self) -> u8
Return the size of VMMemoryDefinition
.
sourcepub fn type_of_vmmemory_definition_current_length(&self) -> Type
pub fn type_of_vmmemory_definition_current_length(&self) -> Type
The type of the current_length
field.
source§impl VMOffsets
impl VMOffsets
Offsets for VMGlobalImport
.
sourcepub fn vmglobal_import_from(&self) -> u8
pub fn vmglobal_import_from(&self) -> u8
The offset of the from
field.
sourcepub fn size_of_vmglobal_import(&self) -> u8
pub fn size_of_vmglobal_import(&self) -> u8
Return the size of VMGlobalImport
.
source§impl VMOffsets
impl VMOffsets
Offsets for VMGlobalDefinition
.
sourcepub fn size_of_vmglobal_definition(&self) -> u8
pub fn size_of_vmglobal_definition(&self) -> u8
Return the size of VMGlobalDefinition
.
source§impl VMOffsets
impl VMOffsets
Offsets for VMCallerCheckedAnyfunc
.
sourcepub fn vmcaller_checked_anyfunc_func_ptr(&self) -> u8
pub fn vmcaller_checked_anyfunc_func_ptr(&self) -> u8
The offset of the func_ptr
field.
sourcepub fn vmcaller_checked_anyfunc_type_index(&self) -> u8
pub fn vmcaller_checked_anyfunc_type_index(&self) -> u8
The offset of the type_index
field.
sourcepub fn vmcaller_checked_anyfunc_vmctx(&self) -> u8
pub fn vmcaller_checked_anyfunc_vmctx(&self) -> u8
The offset of the vmctx
field.
sourcepub fn size_of_vmcaller_checked_anyfunc(&self) -> u8
pub fn size_of_vmcaller_checked_anyfunc(&self) -> u8
Return the size of VMCallerCheckedAnyfunc
.
source§impl VMOffsets
impl VMOffsets
Offsets for VMContext
.
sourcepub fn vmctx_imported_functions(&self) -> u8
pub fn vmctx_imported_functions(&self) -> u8
The offset of the tables
field.
sourcepub fn vmctx_imported_tables(&self) -> u8
pub fn vmctx_imported_tables(&self) -> u8
The offset of the tables
field.
sourcepub fn vmctx_imported_memories(&self) -> u8
pub fn vmctx_imported_memories(&self) -> u8
The offset of the memories
field.
sourcepub fn vmctx_imported_globals(&self) -> u8
pub fn vmctx_imported_globals(&self) -> u8
The offset of the globals
field.
sourcepub fn vmctx_tables(&self) -> u8
pub fn vmctx_tables(&self) -> u8
The offset of the tables
field.
sourcepub fn vmctx_memories(&self) -> u8
pub fn vmctx_memories(&self) -> u8
The offset of the memories
field.
sourcepub fn vmctx_globals(&self) -> u8
pub fn vmctx_globals(&self) -> u8
The offset of the globals
field.
sourcepub fn vmctx_signature_ids(&self) -> u8
pub fn vmctx_signature_ids(&self) -> u8
The offset of the signature_ids
field.
sourcepub fn size_of_vmctx(&self) -> u8
pub fn size_of_vmctx(&self) -> u8
Return the size of VMContext
.
sourcepub fn index_vmfunction_import_body(&self, index: FuncIndex) -> i32
pub fn index_vmfunction_import_body(&self, index: FuncIndex) -> i32
Return the offset from the imported_functions
pointer to the
body
field in *const VMFunctionBody
index index
.
sourcepub fn index_vmfunction_import_vmctx(&self, index: FuncIndex) -> i32
pub fn index_vmfunction_import_vmctx(&self, index: FuncIndex) -> i32
Return the offset from the imported_functions
pointer to the
vmctx
field in *const VMFunctionBody
index index
.
sourcepub fn index_vmtable_import_from(&self, index: TableIndex) -> i32
pub fn index_vmtable_import_from(&self, index: TableIndex) -> i32
Return the offset from the tables
pointer to the from
field in
VMTableImport
index index
.
sourcepub fn index_vmtable_definition_base(&self, index: DefinedTableIndex) -> i32
pub fn index_vmtable_definition_base(&self, index: DefinedTableIndex) -> i32
Return the offset from the tables
pointer to the base
field in
VMTableDefinition
index index
.
sourcepub fn index_vmtable_definition_current_elements(
&self,
index: DefinedTableIndex
) -> i32
pub fn index_vmtable_definition_current_elements(
&self,
index: DefinedTableIndex
) -> i32
Return the offset from the tables
pointer to the current_elements
field in
VMTableDefinition
index index
.
sourcepub fn index_vmmemory_import_from(&self, index: MemoryIndex) -> i32
pub fn index_vmmemory_import_from(&self, index: MemoryIndex) -> i32
Return the offset from the memories
pointer to the from
field in
VMMemoryImport
index index
.
sourcepub fn index_vmmemory_import_vmctx(&self, index: MemoryIndex) -> i32
pub fn index_vmmemory_import_vmctx(&self, index: MemoryIndex) -> i32
Return the offset from the memories
pointer to the vmctx
field in
VMMemoryImport
index index
.
sourcepub fn index_vmmemory_definition_base(&self, index: DefinedMemoryIndex) -> i32
pub fn index_vmmemory_definition_base(&self, index: DefinedMemoryIndex) -> i32
Return the offset from the memories
pointer to the base
field in
VMMemoryDefinition
index index
.
sourcepub fn index_vmmemory_definition_current_length(
&self,
index: DefinedMemoryIndex
) -> i32
pub fn index_vmmemory_definition_current_length(
&self,
index: DefinedMemoryIndex
) -> i32
Return the offset from the memories
pointer to the current_length
field in
VMMemoryDefinition
index index
.
sourcepub fn index_vmglobal_import_from(&self, index: GlobalIndex) -> i32
pub fn index_vmglobal_import_from(&self, index: GlobalIndex) -> i32
Return the offset from the imported_globals
pointer to the from
field in
VMGlobalImport
index index
.
sourcepub fn index_vmglobal_definition(&self, index: DefinedGlobalIndex) -> i32
pub fn index_vmglobal_definition(&self, index: DefinedGlobalIndex) -> i32
Return the offset from the globals
pointer to the VMGlobalDefinition
index index
.