Documentation ¶
Index ¶
- func CopyHostDataToWasm(i types.Instance, data []byte, dataaddrptr, datasizeptr int32) error
- func GetContext(i types.Instance) types.Context
- func GetImportsHandler(i types.Instance) types.ImportsHandler
- func HostFunctions(i types.Instance) (map[string]*ImportFuncInfo, error)
- func ReadStringFromAddr(i types.Instance, addr int32) (string, error)
- type ImportFuncInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CopyHostDataToWasm ¶
func GetImportsHandler ¶
func GetImportsHandler(i types.Instance) types.ImportsHandler
func HostFunctions ¶
func HostFunctions(i types.Instance) (map[string]*ImportFuncInfo, error)
Types ¶
type ImportFuncInfo ¶
type ImportFuncInfo struct { Namespace string Func interface{} }
func NewImportFunc ¶
func NewImportFunc(ns string, f interface{}) *ImportFuncInfo
Click to show internal directories.
Click to hide internal directories.