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

Method setCode

lib/loader/filemgr.cpp:41–47  ·  view source on GitHub ↗

Set code data. See "include/loader/filemgr.h".

Source from the content-addressed store, hash-verified

39
40// Set code data. See "include/loader/filemgr.h".
41Expect<void> FileMgr::setCode(Span<const Byte> CodeData) {
42 reset();
43 Data = CodeData.data();
44 Size = CodeData.size();
45 Status = ErrCode::Value::Success;
46 return {};
47}
48
49// Set code data. See "include/loader/filemgr.h".
50Expect<void> FileMgr::setCode(std::vector<Byte> CodeData) {

Callers 6

parseWasmUnitMethod · 0.45
loadModuleAOTMethod · 0.45
loadTypeMethod · 0.45
loadCanonicalOptionMethod · 0.45
mkOptFunction · 0.45
TESTFunction · 0.45

Calls 4

resetFunction · 0.85
dataMethod · 0.45
sizeMethod · 0.45
emplaceMethod · 0.45

Tested by 2

mkOptFunction · 0.36
TESTFunction · 0.36