Documentation
¶
Overview ¶
Package wa contains miscellaneous WebAssembly-related things.
Index ¶
Constants ¶
View Source
const ( PageBits = 16 PageSize = 1 << PageBits )
View Source
const ( Int = ScalarCategory(0) Float = ScalarCategory(1) )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GlobalType ¶ added in v0.12.0
type GlobalType byte
func MakeGlobalType ¶ added in v0.12.0
func MakeGlobalType(t Type, mutable bool) (g GlobalType)
func (GlobalType) Encode ¶ added in v0.12.0
func (g GlobalType) Encode() (buf [2]byte)
Encode as WebAssembly. Result is undefined if GlobalType representation is not valid.
func (GlobalType) Mutable ¶ added in v0.12.0
func (g GlobalType) Mutable() bool
func (GlobalType) Type ¶ added in v0.12.0
func (g GlobalType) Type() Type
type ScalarCategory ¶
type ScalarCategory uint8
func (ScalarCategory) String ¶
func (cat ScalarCategory) String() string
Click to show internal directories.
Click to hide internal directories.