MCPcopy Index your code
hub / github.com/python/cpython / _handle_prepended_data

Function _handle_prepended_data

Lib/zipfile/__init__.py:272–283  ·  view source on GitHub ↗
(endrec, debug=0)

Source from the content-addressed store, hash-verified

270 return result
271
272def _handle_prepended_data(endrec, debug=0):
273 size_cd = endrec[_ECD_SIZE] # bytes in central directory
274 offset_cd = endrec[_ECD_OFFSET] # offset of central directory
275
276 # "concat" is zero, unless zip was concatenated to another file
277 concat = endrec[_ECD_LOCATION] - size_cd - offset_cd
278
279 if debug > 2:
280 inferred = concat + offset_cd
281 print("given, inferred, offset", offset_cd, inferred, concat)
282
283 return offset_cd, concat
284
285def _EndRecData64(fpin, offset, endrec):
286 """

Callers 2

_check_zipfileFunction · 0.85
_RealGetContentsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…