(&self, index: usize)
| 571 | |
| 572 | #[inline(always)] |
| 573 | fn value_at(&self, index: usize) -> Result<u8, Error> { |
| 574 | match self.bf.get(index) { |
| 575 | None => Err(Error::buffer_out_of_bound( |
| 576 | index, |
| 577 | self.bf.len(), |
| 578 | self.bf.len(), |
| 579 | )), |
| 580 | Some(v) => Ok(*v), |
| 581 | } |
| 582 | } |
| 583 | |
| 584 | #[inline(always)] |
| 585 | pub(crate) fn check_bound(&self, n: usize) -> Result<(), Error> { |
no test coverage detected