wasm_encoder::reencode

Module utils

Source
Available on crate feature wasmparser only.

Functionsยง

abstract_heap_type
array_type
block_type
catch
composite_type
const_expr
cont_type
custom_name_section
custom_section
Converts the input section given from the wasmparser crate into an encoded custom section.
data_index
element_index
element_items
entity_type
export_kind
field_type
func_type
function_index
global_index
global_type
handle
heap_type
indirect_name_map
instruction
intersperse_section_hook
A hook method that is called inside Reencode::parse_core_module before and after every non-custom core wasm section.
mem_arg
memory_index
memory_type
name_map
new_function_with_parsed_locals
Create a new crate::Function by parsing the locals declarations from the provided wasmparser::FunctionBody.
ordering
parse_code_section
Parses the input section given from the wasmparser crate and adds all the code to the code section.
parse_core_module
parse_custom_name_subsection
parse_custom_section
Parses the input section given from the wasmparser crate and adds the custom section to the module.
parse_data
Parses a single wasmparser::Data and adds it to the data section.
parse_data_section
Parses the input section given from the wasmparser crate and adds all the data to the data section.
parse_element
Parses the single wasmparser::Element provided and adds it to the element section.
parse_element_section
Parses the input section given from the wasmparser crate and adds all the elements to the element section.
parse_export
Parses the single wasmparser::Export provided and adds it to the exports section.
parse_export_section
Parses the input section given from the wasmparser crate and adds all the exports to the exports section.
parse_function_body
Parses a single wasmparser::FunctionBody and adds it to the code section.
parse_function_section
Parses the input section given from the wasmparser crate and adds all the functions to the functions section.
parse_global
Parses the single wasmparser::Global provided and adds it to the globals section.
parse_global_section
Parses the input section given from the wasmparser crate and adds all the globals to the globals section.
parse_import
Parses the single wasmparser::Import provided and adds it to the import section.
parse_import_section
Parses the input section given from the wasmparser crate and adds all the imports to the import section.
parse_instruction
Parses a single instruction from reader and adds it to function.
parse_memory_section
Parses the input section given from the wasmparser crate and adds all the memories to the memories section.
parse_recursive_type_group
Parses a single wasmparser::RecGroup and adds it to the types section.
parse_table
Parses a single wasmparser::Table and adds it to the tables section.
parse_table_section
Parses the input section given from the wasmparser crate and adds all the tables to the tables section.
parse_tag_section
Parses the input section given from the wasmparser crate and adds all the tags to the tags section.
parse_type_section
Parses the input section given from the wasmparser crate and adds all the types to the types section.
parse_unknown_section
ref_type
storage_type
struct_type
sub_type
table_index
table_type
tag_index
tag_kind
tag_type
type_index
type_index_unpacked
val_type