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

Method _parse_value

src/docx/image/tiff.py:262–271  ·  view source on GitHub ↗

Return the long int value contained in the `value_offset` field of this entry. Only supports single values at present.

(cls, stream_rdr, offset, value_count, value_offset)

Source from the content-addressed store, hash-verified

260
261 @classmethod
262 def _parse_value(cls, stream_rdr, offset, value_count, value_offset):
263 """Return the long int value contained in the `value_offset` field of this
264 entry.
265
266 Only supports single values at present.
267 """
268 if value_count == 1:
269 return stream_rdr.read_long(offset, 8)
270 else: # pragma: no cover
271 return "Multi-value long integer NOT IMPLEMENTED"
272
273
274class _RationalIfdEntry(_IfdEntry):

Callers

nothing calls this directly

Calls 1

read_longMethod · 0.80

Tested by

no test coverage detected