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

Method fits_in_lin_mem_usize

src/runtime.rs:110–116  ·  view source on GitHub ↗
(&self, buf: usize, cnt: usize)

Source from the content-addressed store, hash-verified

108 // buf + cnt < self.memlen
109 )]
110 pub fn fits_in_lin_mem_usize(&self, buf: usize, cnt: usize) -> bool {
111 let total_size = buf + cnt;
112 if total_size >= self.memlen || total_size >= LINEAR_MEM_SIZE {
113 return false;
114 }
115 self.in_lin_mem_usize(buf) && self.in_lin_mem_usize(cnt) && buf <= buf + cnt
116 }
117
118 /// Copy buffer from sandbox to host
119 #[with_ghost_var(trace: &mut Trace)]

Calls 1

in_lin_mem_usizeMethod · 0.80

Tested by

no test coverage detected