MCPcopy Create free account
hub / github.com/PLSysSec/wave / push_dirent_name

Function push_dirent_name

src/tcb/misc.rs:160–162  ·  view source on GitHub ↗

#[requires(buf.len() > start + len + 19)]

(out_buf: &mut Vec<u8>, buf: &Vec<u8>, start: usize, len: usize)

Source from the content-addressed store, hash-verified

158#[trusted]
159// #[requires(buf.len() > start + len + 19)]
160pub fn push_dirent_name(out_buf: &mut Vec<u8>, buf: &Vec<u8>, start: usize, len: usize) {
161 out_buf.extend_from_slice(&buf[start..start + len])
162}
163
164// Trusted because I need to convince prusti that clone does not alter
165// the length of vectors

Callers 2

check_push_dirent_nameFunction · 0.85
wasi_fd_readdirFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected