Enum parity_wasm::elements::RelocationEntry [] [src]

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,
    },
}

Relocation entry.

Variants

Function index.

Fields of FunctionIndexLeb

Offset of the value to rewrite.

Index of the function symbol in the symbol table.

Function table index.

Fields of TableIndexSleb

Offset of the value to rewrite.

Index of the function symbol in the symbol table.

Function table index.

Fields of TableIndexI32

Offset of the value to rewrite.

Index of the function symbol in the symbol table.

Linear memory index.

Fields of MemoryAddressLeb

Offset of the value to rewrite.

Index of the data symbol in the symbol table.

Addend to add to the address.

Linear memory index.

Fields of MemoryAddressSleb

Offset of the value to rewrite.

Index of the data symbol in the symbol table.

Addend to add to the address.

Linear memory index.

Fields of MemoryAddressI32

Offset of the value to rewrite.

Index of the data symbol in the symbol table.

Addend to add to the address.

Type table index.

Fields of TypeIndexLeb

Offset of the value to rewrite.

Index of the type used.

Global index.

Fields of GlobalIndexLeb

Offset of the value to rewrite.

Index of the global symbol in the symbol table.

Trait Implementations

impl Clone for RelocationEntry
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for RelocationEntry
[src]

impl Debug for RelocationEntry
[src]

[src]

Formats the value using the given formatter. Read more

impl PartialEq for RelocationEntry
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Deserialize for RelocationEntry
[src]

Serialization error produced by deserialization routine.

[src]

Deserialize type from serial i/o

impl Serialize for RelocationEntry
[src]

Serialization error produced by serialization routine.

[src]

Serialize type to serial i/o

Auto Trait Implementations