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