Skip to main content

Module section

Module section 

Source
Expand description

WASM section parsing.

Sections are the top-level organizational unit of a WASM binary. See Spec §5.5.

Structs§

RawSection
A parsed but not yet interpreted section — just the labeled byte span.

Enums§

SectionId
WASM section identifiers. See Spec §5.5.

Functions§

parse_preamble
Validate the WASM preamble (magic number + version), returning the cursor positioned after the 8-byte header.
parse_sections