(&self, buf: SboxPtr, cnt: u32)
| 90 | // (cnt as usize) < self.memlen |
| 91 | )] |
| 92 | pub fn fits_in_lin_mem(&self, buf: SboxPtr, cnt: u32) -> bool { |
| 93 | let total_size = (buf as usize) + (cnt as usize); |
| 94 | if total_size >= self.memlen || total_size >= LINEAR_MEM_SIZE { |
| 95 | return false; |
| 96 | } |
| 97 | self.in_lin_mem(buf) && self.in_lin_mem(cnt) && buf <= buf + cnt |
| 98 | } |
| 99 | |
| 100 | #[pure] |
| 101 | #[with_ghost_var(trace: &Trace)] |
no test coverage detected