MCPcopy 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_copyMethod · 0.45
copyMethod · 0.45

Calls 1

vecClass · 0.85

Tested by

no test coverage detected