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

Method _parse_value

src/docx/image/tiff.py:233–239  ·  view source on GitHub ↗

Return the ASCII string parsed from `stream_rdr` at `value_offset`. The length of the string, including a terminating '\x00' (NUL) character, is in `value_count`.

(cls, stream_rdr, offset, value_count, value_offset)

Source from the content-addressed store, hash-verified

231
232 @classmethod
233 def _parse_value(cls, stream_rdr, offset, value_count, value_offset):
234 """Return the ASCII string parsed from `stream_rdr` at `value_offset`.
235
236 The length of the string, including a terminating '\x00' (NUL) character, is in
237 `value_count`.
238 """
239 return stream_rdr.read_str(value_count - 1, value_offset)
240
241
242class _ShortIfdEntry(_IfdEntry):

Callers

nothing calls this directly

Calls 1

read_strMethod · 0.80

Tested by

no test coverage detected