Versions in this module Expand all Collapse all v0 v0.1.1 Jun 22, 2025 v0.1.0 Jun 21, 2025 Changes in this version + const ComponentVersion + const ModuleVersion + var Magic = []byte + func Read(reader io.Reader) (*api.Document, error) + func ReadByte(reader io.Reader) (byte, error) + func ReadBytes(reader io.Reader, size int) ([]byte, error) + func ReadComponent(reader io.Reader) (*api.Component, error) + func ReadExport(reader io.Reader) (api.Export, error) + func ReadExports(size uint32, reader io.Reader) ([]api.Export, error) + func ReadExpression(reader io.Reader) (*api.Expression, error) + func ReadFunc(reader io.Reader) (*api.Func, error) + func ReadFuncTypes(size uint32, reader io.Reader) ([]*api.FuncType, error) + func ReadFuncs(size uint32, reader io.Reader) ([]*api.Func, error) + func ReadInstruction(reader io.Reader) (api.Instruction, error) + func ReadLebU128(reader io.Reader) (uint32, error) + func ReadModule(reader io.Reader) (*api.Module, error) + func ReadOpCode(reader io.Reader) (opcode.Opcode, error) + func ReadPreamble(reader io.Reader) (api.Preamble, error) + func ReadResultType(reader io.Reader) (api.ResultType, error) + func ReadString(reader io.Reader) (string, error) + func ReadType(reader io.Reader) (*api.FuncType, error) + func ReadUInt16(reader io.Reader) (uint16, error) + func ReadUInt32(reader io.Reader) (uint32, error) + func ReadValueType(reader io.Reader) (api.ValType, error) + func ReadValueTypeVector(reader io.Reader) ([]api.ValType, error) + func UpdateFuncsWithCode(module *api.Module, size uint32, reader io.Reader) error + type ExportKind byte + const FuncExportKind + const GlobalExportKind + const MemoryExportKind + const TableExportKind + type Section struct + Data []byte + ID SectionID + type SectionID uint8 + const CodeSectionID + const CustomSectionID + const ExportSectionID + const FunctionSectionID + const TypeSectionID + func ReadSectionHeader(reader io.Reader) (SectionID, uint32, error) + type ValType byte + const F32 + const F64 + const I32 + const I64