modgen

package
v0.0.0-...-4e1a221 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Gen

func Gen(seed []byte, enabledFeature wasm.Features,
	numTypes, numFunctions, numImports, numExports, numGlobals, numElements, numData uint32,
	needStartSection bool,
) *wasm.Module

Gen generates a pseudo random compilable module based on `seed`. The size of each section is controlled by the corresponding params. For example, `numImports` controls the number of segment in the import section.

Note: "pseudo" here means the determinism of the generated results, e.g. giving same seed returns exactly the same module for the same code base in Gen.

Note: this is only used for testing wazero runtime.

Types

This section is empty.

Jump to

Keyboard shortcuts

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