Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bytecodealliance/wasmtime
/ vec
Method
vec
crates/c-api/include/wasm.hh:64–66 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
62
#endif
63
64
vec(size_t size) : vec(size, size ? new(std::nothrow) T[size] : nullptr) {
65
make_data();
66
}
67
68
vec(size_t size, T* data) : size_(size), data_(data) {
69
assert(!!size_ == !!data_ || size_ == invalid_size);
Callers
nothing calls this directly
Calls
2
assert
Function · 0.85
release
Method · 0.80
Tested by
no test coverage detected