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

Method copy

include/wasm.hh:126–130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

124 }
125
126 auto copy() const -> vec {
127 auto v = vec(size_);
128 if (v) for (size_t i = 0; i < size_; ++i) v.data_[i] = data_[i];
129 return v;
130 }
131
132 // TODO: This can't be used for e.g. vec<Val>
133 auto deep_copy() const -> vec {

Callers 2

deep_copyMethod · 0.45
copyMethod · 0.45

Calls 1

vecClass · 0.85

Tested by

no test coverage detected