(endrec, debug=0)
| 270 | return result |
| 271 | |
| 272 | def _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 | |
| 285 | def _EndRecData64(fpin, offset, endrec): |
| 286 | """ |
no outgoing calls
no test coverage detected
searching dependent graphs…