Documentation
¶
Index ¶
- func Error(ctx context.Context, module api.Module, ptr wasm.Ptr, state wasm.State, ...) wasm.Buffer
- func Execute(ctx context.Context, params ExecParams) (output []byte, err error)
- func LoadBytes(module api.Module, value wasm.Buffer) []byte
- func LoadString(module api.Module, value wasm.String) string
- func Malloc(ctx context.Context, module api.Module, data []byte) wasm.Buffer
- func MallocJSON(ctx context.Context, module api.Module, ref wasm.Ptr, value any) wasm.Buffer
- type CompileParams
- type ExecParams
- type Module
- type RuntimeError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CompileParams ¶ added in v0.1.3
type ExecParams ¶
type Module ¶ added in v0.6.7
type Module struct {
wazero.CompiledModule
wazero.Runtime
// contains filtered or unexported fields
}
func Compile ¶ added in v0.1.3
func Compile(ctx context.Context, params CompileParams) (Module, error)
func (Module) Instantiate ¶ added in v0.6.7
func (Module) MaxMemoryMib ¶ added in v0.17.0
func (Module) SHA256Checksum ¶ added in v0.20.5
type RuntimeError ¶ added in v0.19.8
type RuntimeError struct {
Message string
// contains filtered or unexported fields
}
func (RuntimeError) Error ¶ added in v0.19.8
func (err RuntimeError) Error() string
func (RuntimeError) ExitCode ¶ added in v0.19.8
func (err RuntimeError) ExitCode() int
Click to show internal directories.
Click to hide internal directories.