MCPcopy Create free account
hub / github.com/WasmEdge/WasmEdge / HexToFile

Function HexToFile

test/mixcall/mixcallTest.cpp:78–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76 0x31};
77
78void HexToFile(cxx20::span<const uint8_t> Wasm, const char *Path) {
79 std::ofstream TFile(std::filesystem::u8path(Path), std::ios_base::binary);
80 TFile.write(reinterpret_cast<const char *>(Wasm.data()),
81 static_cast<std::streamsize>(Wasm.size()));
82 TFile.close();
83}
84
85class HostPrintI32 : public WasmEdge::Runtime::HostFunction<HostPrintI32> {
86public:

Callers 1

TESTFunction · 0.70

Calls 4

writeMethod · 0.45
dataMethod · 0.45
sizeMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected