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

Method _make_stream_reader

src/docx/image/tiff.py:111–115  ·  view source on GitHub ↗

Return a |StreamReader| instance with wrapping `stream` and having "endian- ness" determined by the 'MM' or 'II' indicator in the TIFF stream header.

(cls, stream)

Source from the content-addressed store, hash-verified

109
110 @classmethod
111 def _make_stream_reader(cls, stream):
112 """Return a |StreamReader| instance with wrapping `stream` and having "endian-
113 ness" determined by the 'MM' or 'II' indicator in the TIFF stream header."""
114 endian = cls._detect_endian(stream)
115 return StreamReader(stream, endian)
116
117
118class _IfdEntries:

Callers 2

parseMethod · 0.80

Calls 2

StreamReaderClass · 0.85
_detect_endianMethod · 0.80