MCPcopy Create free account
hub / github.com/WasmVM/WasmVM / mem_string

Function mem_string

host/sysenv/sysenv.cpp:85–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83}
84
85std::string mem_string(Stack& stack, i64_t ptr, i64_t len) {
86 auto sp = mem_span(stack, ptr, len);
87 return std::string(reinterpret_cast<const char*>(sp.data()), sp.size());
88}
89
90void mem_write(Stack& stack, i64_t ptr, const void* src, size_t len) {
91 MemInst& mem = get_mem(stack, ptr);

Callers 8

fs_openFunction · 0.85
fs_statFunction · 0.85
fs_unlinkFunction · 0.85
fs_renameFunction · 0.85
fs_mkdirFunction · 0.85
fs_rmdirFunction · 0.85
fs_opendirFunction · 0.85
proc_getenvFunction · 0.85

Calls 1

mem_spanFunction · 0.85

Tested by

no test coverage detected