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

proxy.go

Version
v1.0.0-beta.1
Published
Aug 30, 2022
Platform
linux/amd64
Imports
5 packages
Last checked
21 minutes ago

Tools for package owners.