package proxy
import "github.com/tetratelabs/wazero/internal/testing/proxy"
Index ¶
Functions ¶
func GetProxyModuleBinary ¶
func GetProxyModuleBinary(moduleName string, proxyTarget wazero.CompiledModule) []byte
GetProxyModuleBinary creates the proxy module to proxy a function call against all the exported functions in `proxyTarget`, and returns its encoded binary. The resulting module exports the proxy functions whose names are exactly the same as the proxy destination.
This is used to test host call implementations.
Source Files ¶
- Version
- v1.0.0-pre.4
- Published
- Dec 1, 2022
- Platform
- linux/amd64
- Imports
- 5 packages
- Last checked
- 24 minutes ago –
Tools for package owners.