MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / make

Method make

crates/c-api/include/wasm.hh:149–153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

147 }
148
149 static auto make(size_t size, T init[]) -> vec {
150 auto v = vec(size);
151 if (v) for (size_t i = 0; i < size; ++i) v.data_[i] = std::move(init[i]);
152 return v;
153 }
154
155 static auto make(std::string s) -> vec<char> {
156 auto v = vec(s.length());

Callers

nothing calls this directly

Calls 3

vecClass · 0.85
getMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected