(&self, buf: usize, cnt: usize)
| 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)] |
no test coverage detected