(&self)
| 412 | } |
| 413 | |
| 414 | fn _as_contiguous_mut(&self) -> Option<BorrowedValueMut<'_, [u8]>> { |
| 415 | self.desc.is_contiguous().then(|| { |
| 416 | BorrowedValueMut::map(self.buffer.obj_bytes_mut(), |x| { |
| 417 | &mut x[self.start..self.start + self.desc.len] |
| 418 | }) |
| 419 | }) |
| 420 | } |
| 421 | |
| 422 | fn append_to(&self, buf: &mut Vec<u8>) { |
| 423 | if let Some(bytes) = self.as_contiguous() { |
nothing calls this directly
no test coverage detected