Borrow a `SegmentReader` over the owned plaintext bytes.
(&self)
| 343 | |
| 344 | /// Borrow a `SegmentReader` over the owned plaintext bytes. |
| 345 | pub fn reader(&self) -> SegmentReader<'_> { |
| 346 | SegmentReader { |
| 347 | bytes: &self.plaintext, |
| 348 | header: self.header, |
| 349 | footer: self.footer.clone(), |
| 350 | } |
| 351 | } |
| 352 | |
| 353 | /// Consume the owned reader and return the inner plaintext buffer. |
| 354 | pub fn into_plaintext(self) -> Vec<u8> { |