package
0.19.1
Repository: https://github.com/stealthrocket/wazergo.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
Err constructs an optional from an error.
Fail constructs an Error value from the given Go error.
Format is a helper function which can be used in the implementation of the FormatValue and FormatObject methods of Value and Object[T].
MakeList constructs a list from a pointer to an object of type T and a length.
New constructs a pointer to an object of type T backed by Go memory.
Opt constructs an optional from a pair of a result and error.
Ptr constructs a pointer of objects T backed by a memory area at a specified offset.
Res constructs an optional from a value.
UnsafeLoadObject is a helper which may be used to implement the LoadObject method for object types which do not contain any inner pointers.
UnsafeStoreObject is a helper which may be used to implement the StoreObject method for object types which do not contain any inner pointers.

# Variables

ErrorStrings is a global used in the formatting of Errno values.
OK is a special value indicating that a function which returns nothing has not errored either.

# Structs

List represents a sequence of objects held in module memory.
None is a special type of size zero bytes.
Optional represents a function result which may be missing due to the program encountering an error.
Pointer is a parameter type used to represent a pointer to an object held in program memory.

# Interfaces

Formatter is an interface used to customize the behavior of Format.
Object is an interface which represents values that can be loaded or stored in memory.
Param is an interface representing parameters of WebAssembly functions which are read form the stack.
ParamResult is an interface implemented by types which can be used as both a parameter and a result.
Result is an interface reprenting results of WebAssembly functions which are written to the stack.
Value represents a field in a function signature, which may be a parameter or a result.

# Type aliases

Array is a type representing a sequence of contiguous items in memory.
No description provided by the author
No description provided by the author
Errno is an error type representing error codes that are often returned by WebAssembly module functions.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
String is similar to Bytes but holds the value as a Go string which is not sharing memory with the WebAssembly program memory anymore.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author