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) )
View Source
const ( Size32 = Size(4) Size64 = Size(8) )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GlobalType ¶
type GlobalType byte
func MakeGlobalType ¶
func MakeGlobalType(t Type, mutable bool) (g GlobalType)
func (GlobalType) Encode ¶
func (g GlobalType) Encode() (buf [2]byte)
Encode as WebAssembly. Result is undefined if GlobalType representation is not valid.
func (GlobalType) Mutable ¶
func (g GlobalType) Mutable() bool
func (GlobalType) Type ¶
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.