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

Method _parse_value

src/docx/image/tiff.py:246–255  ·  view source on GitHub ↗

Return the short 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

244
245 @classmethod
246 def _parse_value(cls, stream_rdr, offset, value_count, value_offset):
247 """Return the short int value contained in the `value_offset` field of this
248 entry.
249
250 Only supports single values at present.
251 """
252 if value_count == 1:
253 return stream_rdr.read_short(offset, 8)
254 else: # pragma: no cover
255 return "Multi-value short integer NOT IMPLEMENTED"
256
257
258class _LongIfdEntry(_IfdEntry):

Callers

nothing calls this directly

Calls 1

read_shortMethod · 0.80

Tested by

no test coverage detected