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

Method _raw_name_string

src/pptx/text/fonts.py:342–349  ·  view source on GitHub ↗

Return the *length* bytes comprising the encoded string in *bufr* at *str_offset* in the strings area beginning at *strings_offset*.

(bufr, strings_offset, str_offset, length)

Source from the content-addressed store, hash-verified

340
341 @staticmethod
342 def _raw_name_string(bufr, strings_offset, str_offset, length):
343 """
344 Return the *length* bytes comprising the encoded string in *bufr* at
345 *str_offset* in the strings area beginning at *strings_offset*.
346 """
347 offset = strings_offset + str_offset
348 tmpl = "%ds" % length
349 return unpack_from(tmpl, bufr, offset)[0]
350
351 def _read_name(self, bufr, idx, strings_offset):
352 """Return a (platform_id, name_id, name) 3-tuple for name at `idx` in `bufr`.

Callers 2

_read_name_textMethod · 0.95

Calls

no outgoing calls