import "github.com/tsavola/wag/wa"
Package wa contains miscellaneous WebAssembly-related things.
functype.go globaltype.go page.go type.go
const ( Int = ScalarCategory(0) Float = ScalarCategory(1) )
const ( Void = Type(0) I32 = Type(4 | Int) I64 = Type(8 | Int) F32 = Type(4 | Float) F64 = Type(8 | Float) )
func MakeGlobalType(t Type, mutable bool) (g GlobalType)
func (g GlobalType) Encode() (buf [2]byte)
Encode as WebAssembly. Result is undefined if GlobalType representation is not valid.
func (g GlobalType) Mutable() bool
func (g GlobalType) Type() Type
func (cat ScalarCategory) String() string
func (t Type) Category() ScalarCategory
Category of a non-void type.
Encode as WebAssembly. Result is undefined if Type representation is not valid.
Size in bytes.
Path | Synopsis |
---|---|
opcode | Package opcode enumerates WebAssembly instructions. |
Package wa is imported by 27 packages. Updated 2019-11-02. Refresh now. Tools for package owners.