MCPcopy Create free account
hub / github.com/scanny/python-pptx / read_fields

Method read_fields

src/pptx/text/fonts.py:216–223  ·  view source on GitHub ↗

Return a tuple containing the C-struct fields in this stream specified by *template* and starting at *offset*.

(self, template, offset=0)

Source from the content-addressed store, hash-verified

214 return self._file.read(length)
215
216 def read_fields(self, template, offset=0):
217 """
218 Return a tuple containing the C-struct fields in this stream
219 specified by *template* and starting at *offset*.
220 """
221 self._file.seek(offset)
222 bufr = self._file.read(calcsize(template))
223 return unpack_from(template, bufr)
224
225
226class _BaseTable(object):

Callers 3

_fieldsMethod · 0.80
_fieldsMethod · 0.80

Calls 1

readMethod · 0.80

Tested by 1