Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
vec
Class · 0.85
data
Method · 0.80
get
Method · 0.45
Tested by
no test coverage detected