MCPcopy Create free account
hub / github.com/WebAssembly/wasm-c-api / make_nt

Method make_nt

include/wasm.hh:155–159  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

153 }
154
155 static auto make_nt(std::string s) -> vec<char> {
156 auto v = vec(s.length() + 1);
157 if (v) std::strcpy(v.get(), s.data());
158 return v;
159 }
160
161 // TODO(mvsc): MVSC requires this special case:
162 static auto make() -> vec {

Callers

nothing calls this directly

Calls 3

vecClass · 0.85
dataMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected