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§

Return a new VMOffsets instance, for a given pointer size.

Offsets for VMFunctionImport.

The offset of the body field.

The offset of the vmctx field.

Return the size of VMFunctionImport.

Offsets for *const VMFunctionBody.

The size of the current_elements field.

Offsets for VMTableImport.

The offset of the from field.

The offset of the vmctx field.

Return the size of VMTableImport.

Offsets for VMTableDefinition.

The offset of the base field.

The offset of the current_elements field.

The size of the current_elements field.

Return the size of VMTableDefinition.

The type of the current_elements field.

Offsets for VMMemoryImport.

The offset of the from field.

The offset of the vmctx field.

Return the size of VMMemoryImport.

Offsets for VMMemoryDefinition.

The offset of the base field.

The offset of the current_length field.

The size of the current_length field.

Return the size of VMMemoryDefinition.

The type of the current_length field.

Offsets for VMGlobalImport.

The offset of the from field.

Return the size of VMGlobalImport.

Offsets for VMGlobalDefinition.

Return the size of VMGlobalDefinition.

Offsets for VMSharedSignatureIndex.

Return the size of VMSharedSignatureIndex.

Offsets for VMCallerCheckedAnyfunc.

The offset of the func_ptr field.

The offset of the type_index field.

The offset of the vmctx field.

Return the size of VMCallerCheckedAnyfunc.

Offsets for VMContext.

The offset of the tables field.

The offset of the tables field.

The offset of the memories field.

The offset of the globals field.

The offset of the tables field.

The offset of the memories field.

The offset of the globals field.

The offset of the signature_ids field.

Return the size of VMContext.

Return the offset from the imported_functions pointer to the body field in *const VMFunctionBody index index.

Return the offset from the imported_functions pointer to the vmctx field in *const VMFunctionBody index index.

Return the offset from the tables pointer to the from field in VMTableImport index index.

Return the offset from the tables pointer to the base field in VMTableDefinition index index.

Return the offset from the tables pointer to the current_elements field in VMTableDefinition index index.

Return the offset from the memories pointer to the from field in VMMemoryImport index index.

Return the offset from the memories pointer to the vmctx field in VMMemoryImport index index.

Return the offset from the memories pointer to the base field in VMMemoryDefinition index index.

Return the offset from the memories pointer to the current_length field in VMMemoryDefinition index index.

Return the offset from the imported_globals pointer to the from field in VMGlobalImport index index.

Return the offset from the globals pointer to the VMGlobalDefinition index index.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.