Add inner() method to decoder to provide access to raw reader

This commit is contained in:
Alden Timme committed 2025-07-21 20:47:47 -07:00
1 parent 33453289b6
commit 29402875cb
2 files changed
+55 -1

No files matched your search

+5
View File
@@ -660,6 +660,11 @@ impl<R: Read + Seek> Decoder<R> {
}
}
/// Returns a mutable reference to the stream being decoded.
pub fn inner(&mut self) -> &mut R {
self.value_reader.reader.inner()
}
/// Reads a TIFF byte value
#[inline]
pub fn read_byte(&mut self) -> Result<u8, io::Error> {