(&mut self, n: usize)
| 331 | return Err(ProfileError::Corrupt); |
| 332 | } |
| 333 | } |
| 334 | for &p in &delta_col { |
| 335 | if p as usize >= n { |
| 336 | return Err(ProfileError::Corrupt); |
| 337 | } |
| 338 | } |
| 339 | Ok(BlockProfile { blocks, delta_row, delta_col }) |
| 340 | } |
| 341 | } |
| 342 | |
| 343 | /// Errors from decoding a `.ixprof` file. |
| 344 | #[derive(Debug, Clone, PartialEq, Eq)] |
no test coverage detected