Add inner() method to decoder to provide access to raw reader
This commit is contained in:
1 parent
33453289b6
commit
29402875cb
2 files changed
+55
-1
No files matched your search
@@ -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> {
|
||||
|
||||
Reference in new issue
Block a user