Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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_copy
Method · 0.45
copy
Method · 0.45
Calls
1
vec
Class · 0.85
Tested by
no test coverage detected