Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bytecodealliance/wasmtime
/ cumulative_size
Method
cumulative_size
crates/wasi-common/src/string_array.rs:41–46 ·
view source on GitHub ↗
(&self)
Source
from the content-addressed store, hash-verified
39
}
40
41
pub fn cumulative_size(&self) -> u32 {
42
self.elems
43
.iter()
44
.map(|e| e.as_bytes().len() + 1)
45
.sum::<usize>() as u32
46
}
47
48
pub fn write_to_guest(
49
&self,
Callers
4
push
Method · 0.80
write_to_guest
Method · 0.80
args_sizes_get
Method · 0.80
environ_sizes_get
Method · 0.80
Calls
4
as_bytes
Method · 0.80
map
Method · 0.45
iter
Method · 0.45
len
Method · 0.45
Tested by
no test coverage detected