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

Method make

include/wasm.hh:143–147  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

141 }
142
143 static auto make(size_t size, T init[]) -> vec {
144 auto v = vec(size);
145 if (v) for (size_t i = 0; i < size; ++i) v.data_[i] = std::move(init[i]);
146 return v;
147 }
148
149 static auto make(std::string s) -> vec<char> {
150 auto v = vec(s.length());

Callers

nothing calls this directly

Calls 3

vecClass · 0.85
dataMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected