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

Method deep_copy

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

TODO: This can't be used for e.g. vec

Source from the content-addressed store, hash-verified

137
138 // TODO: This can't be used for e.g. vec<Val>
139 auto deep_copy() const -> vec {
140 auto v = vec(size_);
141 if (v) for (size_t i = 0; i < size_; ++i) v.data_[i] = data_[i]->copy();
142 return v;
143 }
144
145 static auto make_uninitialized(size_t size = 0) -> vec {
146 return vec(size);

Callers

nothing calls this directly

Calls 2

vecClass · 0.85
copyMethod · 0.45

Tested by

no test coverage detected