MCPcopy Index your code
hub / github.com/python-openxml/python-docx / iter_entries

Method iter_entries

src/docx/image/tiff.py:157–163  ·  view source on GitHub ↗

Generate an |_IfdEntry| instance corresponding to each entry in the directory.

(self)

Source from the content-addressed store, hash-verified

155 self._offset = offset
156
157 def iter_entries(self):
158 """Generate an |_IfdEntry| instance corresponding to each entry in the
159 directory."""
160 for idx in range(self._entry_count):
161 dir_entry_offset = self._offset + 2 + (idx * 12)
162 ifd_entry = _IfdEntryFactory(self._stream_rdr, dir_entry_offset)
163 yield ifd_entry
164
165 @property
166 def _entry_count(self):

Calls 1

_IfdEntryFactoryFunction · 0.85