MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime-go / Params

Method Params

functype.go:78–81  ·  view source on GitHub ↗

Params returns the parameter types of this function type

()

Source from the content-addressed store, hash-verified

76
77// Params returns the parameter types of this function type
78func (ty *FuncType) Params() []*ValType {
79 ptr := C.wasm_functype_params(ty.ptr())
80 return ty.convertTypeList(ptr)
81}
82
83// Results returns the result types of this function type
84func (ty *FuncType) Results() []*ValType {

Callers 7

TestFuncTypeFunction · 0.95
TestInstanceFunction · 0.80
TestRefTypesWrapFunction · 0.80
TestWrongArgsPanicFunction · 0.80
CallMethod · 0.80
TestModuleImportsFunction · 0.80
TestModuleExportsFunction · 0.80

Calls 2

ptrMethod · 0.95
convertTypeListMethod · 0.95

Tested by 6

TestFuncTypeFunction · 0.76
TestInstanceFunction · 0.64
TestRefTypesWrapFunction · 0.64
TestWrongArgsPanicFunction · 0.64
TestModuleImportsFunction · 0.64
TestModuleExportsFunction · 0.64