(&self, start: usize)
| 300 | #[ensures(ctx_safe(self))] |
| 301 | #[ensures(trace_safe(trace, self))] |
| 302 | pub fn read_u32_pair(&self, start: usize) -> RuntimeResult<(u32, u32)> { |
| 303 | if !self.fits_in_lin_mem_usize(start, 8) { |
| 304 | return Err(Eoverflow); |
| 305 | } |
| 306 | let x1 = self.read_u32(start); |
| 307 | let x2 = self.read_u32(start + 4); |
| 308 | Ok((x1, x2)) |
| 309 | } |
| 310 | |
| 311 | /// write u16 to wasm linear memory |
| 312 | // Not thrilled about this implementation, but it works |
no test coverage detected