Converts the input section
given from the wasmparser
crate into an
encoded custom section.
Create a new
crate::Function
by parsing the locals declarations from the
provided [
wasmparser::FunctionBody
].
Parses the input section
given from the wasmparser
crate and adds
all the code to the code
section.
Parses the input section
given from the wasmparser
crate and
adds the custom section to the module
.
Parses a single [wasmparser::Data
] and adds it to the data
section.
Parses the input section
given from the wasmparser
crate and adds
all the data to the data
section.
Parses the single [wasmparser::Element
] provided and adds it to the
element
section.
Parses the input section
given from the wasmparser
crate and adds
all the elements to the element
section.
Parses the single [wasmparser::Export
] provided and adds it to the
exports
section.
Parses the input section
given from the wasmparser
crate and adds
all the exports to the exports
section.
Parses a single [wasmparser::FunctionBody
] and adds it to the code
section.
Parses the input section
given from the wasmparser
crate and adds
all the functions to the functions
section.
Parses the single [wasmparser::Global
] provided and adds it to the
globals
section.
Parses the input section
given from the wasmparser
crate and adds
all the globals to the globals
section.
Parses the single [wasmparser::Import
] provided and adds it to the
import
section.
Parses the input section
given from the wasmparser
crate and adds
all the imports to the import
section.
Parses a single instruction from reader
and adds it to function
.
Parses the input section
given from the wasmparser
crate and adds
all the memories to the memories
section.
Parses a single [wasmparser::RecGroup
] and adds it to the types
section.
Parses a single [wasmparser::Table
] and adds it to the tables
section.
Parses the input section
given from the wasmparser
crate and adds
all the tables to the tables
section.
Parses the input section
given from the wasmparser
crate and adds
all the tags to the tags
section.
Parses the input section
given from the wasmparser
crate and adds
all the types to the types
section.