Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bytecodealliance/wit-bindgen
/ allocated_bytes
Method
allocated_bytes
tests/runtime/lists/test.rs:10–12 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
8
9
impl exports::test::lists::to_test::Guest for Component {
10
fn allocated_bytes() -> u32 {
11
alloc::get().try_into().unwrap()
12
}
13
14
fn empty_list_param(a: Vec<u8>) {
15
assert!(a.is_empty());
Callers
nothing calls this directly
Calls
1
get
Function · 0.85
Tested by
no test coverage detected