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

Function HexToFile

test/externref/ExternrefTest.cpp:128–133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

126 0x01, 0x04, 0x01, 0x00, 0x01, 0x30, 0x04, 0x04, 0x01, 0x00, 0x01, 0x30};
127
128void HexToFile(cxx20::span<const uint8_t> Wasm, const char *Path) {
129 std::ofstream TFile(std::filesystem::u8path(Path), std::ios_base::binary);
130 TFile.write(reinterpret_cast<const char *>(Wasm.data()),
131 static_cast<std::streamsize>(Wasm.size()));
132 TFile.close();
133}
134
135// The following are the functions and class definitions passed as references.
136

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