section

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 21, 2018 License: BSD-3-Clause Imports: 8 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyCodeSection

func CopyCodeSection(w io.Writer, r module.Reader) (ok bool, err error)

CopyCodeSection if there is one. Unknown sections preceding the code section are silently discarded. If another known section type is found, it is left untouched (the reader will be backed up before the section id).

func DiscardUnknownSections

func DiscardUnknownSections(r module.Reader) (err error)

Types

type FunctionName

type FunctionName struct {
	FunName    string   // TODO: rename?
	LocalNames []string // TODO: map?
}

type NameSection

type NameSection struct {
	ModuleName    string
	FunctionNames []FunctionName // TODO: map? rename?
}

func (*NameSection) Load

func (ns *NameSection) Load(_ string, r module.Reader) (err error)

Load "name" custom section.

type UnknownLoader

type UnknownLoader func(string, module.Reader) error

type UnknownLoaders

type UnknownLoaders map[string]UnknownLoader

func (UnknownLoaders) Load

func (uls UnknownLoaders) Load(r module.Reader, payloadLen uint32) (err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL