Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bytecodealliance/wasmtime
/ copy
Method
copy
crates/c-api/include/wasm.hh:132–136 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
130
}
131
132
auto copy() const -> vec {
133
auto v = vec(size_);
134
if (v) for (size_t i = 0; i < size_; ++i) v.data_[i] = data_[i];
135
return v;
136
}
137
138
// TODO: This can't be used for e.g. vec<Val>
139
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