Enum parity_wasm::elements::RelocationEntry
source · [−]pub enum RelocationEntry {
FunctionIndexLeb {
offset: u32,
index: u32,
},
TableIndexSleb {
offset: u32,
index: u32,
},
TableIndexI32 {
offset: u32,
index: u32,
},
MemoryAddressLeb {
offset: u32,
index: u32,
addend: i32,
},
MemoryAddressSleb {
offset: u32,
index: u32,
addend: i32,
},
MemoryAddressI32 {
offset: u32,
index: u32,
addend: i32,
},
TypeIndexLeb {
offset: u32,
index: u32,
},
GlobalIndexLeb {
offset: u32,
index: u32,
},
}Expand description
Relocation entry.
Variants
FunctionIndexLeb
Fields
offset: u32Offset of the value to rewrite.
index: u32Index of the function symbol in the symbol table.
Function index.
TableIndexSleb
Fields
offset: u32Offset of the value to rewrite.
index: u32Index of the function symbol in the symbol table.
Function table index.
TableIndexI32
Fields
offset: u32Offset of the value to rewrite.
index: u32Index of the function symbol in the symbol table.
Function table index.
MemoryAddressLeb
Fields
offset: u32Offset of the value to rewrite.
index: u32Index of the data symbol in the symbol table.
addend: i32Addend to add to the address.
Linear memory index.
MemoryAddressSleb
Fields
offset: u32Offset of the value to rewrite.
index: u32Index of the data symbol in the symbol table.
addend: i32Addend to add to the address.
Linear memory index.
MemoryAddressI32
Fields
offset: u32Offset of the value to rewrite.
index: u32Index of the data symbol in the symbol table.
addend: i32Addend to add to the address.
Linear memory index.
TypeIndexLeb
Type table index.
GlobalIndexLeb
Fields
offset: u32Offset of the value to rewrite.
index: u32Index of the global symbol in the symbol table.
Global index.
Trait Implementations
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl RefUnwindSafe for RelocationEntry
impl Send for RelocationEntry
impl Sync for RelocationEntry
impl Unpin for RelocationEntry
impl UnwindSafe for RelocationEntry
Blanket Implementations
Mutably borrows from an owned value. Read more