MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / readFile

Function readFile

examples/linking.cc:16–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14}
15
16std::string readFile(const char *name) {
17 std::ifstream watFile;
18 watFile.open(name);
19 std::stringstream strStream;
20 strStream << watFile.rdbuf();
21 return strStream.str();
22}
23
24int main() {
25 Engine engine;

Callers 1

mainFunction · 0.70

Calls 2

strMethod · 0.80
openMethod · 0.45

Tested by

no test coverage detected