MCPcopy Create free account
hub / github.com/ClickHouse/ClickHouse / linkHostFunctions

Function linkHostFunctions

src/Interpreters/WasmModuleManager.cpp:195–206  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

193
194
195static void linkHostFunctions(WasmModule & module)
196{
197 for (const auto & declaration : module.getImports())
198 {
199 if (declaration.getModuleName() != "env")
200 continue;
201
202 auto host_func = WebAssembly::getHostFunction(declaration.getName());
203 checkFunctionDeclarationMatches(declaration, host_func.getFunctionDeclaration());
204 module.linkFunction(std::move(host_func));
205 }
206}
207
208std::string WasmModuleManager::loadModuleImpl(std::string_view module_name)
209{

Callers 1

getModuleMethod · 0.85

Calls 7

getHostFunctionFunction · 0.85
getModuleNameMethod · 0.80
getImportsMethod · 0.45
getNameMethod · 0.45
linkFunctionMethod · 0.45

Tested by

no test coverage detected