Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bytecodealliance/wasmtime
/ make_nt
Method
make_nt
crates/c-api/include/wasm.hh:161–165 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
159
}
160
161
static auto make_nt(std::string s) -> vec<char> {
162
auto v = vec(s.length() + 1);
163
if (v) std::strcpy(v.get(), s.data());
164
return v;
165
}
166
167
// TODO(mvsc): MVSC requires this special case:
168
static auto make() -> vec {
Callers
nothing calls this directly
Calls
3
vec
Class · 0.85
get
Method · 0.45
data
Method · 0.45
Tested by
no test coverage detected