Skip to content

Commit 650cca1

Browse files
committed
Expose next_ifd_offset
1 parent 47b095e commit 650cca1

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/metadata/reader.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,13 @@ impl TiffMetadataReader {
8989
self.next_ifd_offset.is_some()
9090
}
9191

92+
/// The byte offset of the start of the next IFD.
93+
///
94+
/// This will be `None` if all IFDs have already been read.
95+
pub fn next_ifd_offset(&self) -> Option<u64> {
96+
self.next_ifd_offset
97+
}
98+
9299
/// Read the next IFD from the file.
93100
///
94101
/// If there are no more IFDs, returns `None`.

0 commit comments

Comments
 (0)