ifd_enumerate.go: Add NextIfd() accessor

- Supports go-exif-knife.
dustin/master
Dustin Oprea 2020-07-17 00:54:38 -04:00
parent 73fc50e0d0
commit 4675ba7529
1 changed files with 8 additions and 0 deletions

View File

@ -715,6 +715,14 @@ func (ifd *Ifd) ByteOrder() binary.ByteOrder {
return ifd.byteOrder
}
// NextIfd returns the Ifd struct for the next IFD in the chain.
func (ifd *Ifd) NextIfd() *Ifd {
// TODO(dustin): Add test
return ifd.nextIfd
}
// ChildWithIfdPath returns an `Ifd` struct for the given child of the current
// IFD.
func (ifd *Ifd) ChildWithIfdPath(iiChild *exifcommon.IfdIdentity) (childIfd *Ifd, err error) {