Lines Matching refs:extra
271 'extra',
310 self.extra = "" # ZIP extra data
342 extra = self.extra
348 extra = extra + struct.pack(fmt,
365 len(filename), len(extra))
366 return header + filename + extra
384 # Try to decode the extra field.
385 extra = self.extra
387 while extra:
388 tp, ln = unpack('<HH', extra[:4])
391 counts = unpack('<QQQ', extra[4:28])
393 counts = unpack('<QQ', extra[4:20])
395 counts = unpack('<Q', extra[4:12])
399 raise RuntimeError, "Corrupt extra field %s"%(ln,)
417 extra = extra[ln+4:]
841 x.extra = fp.read(centdir[_CD_EXTRA_FIELD_LENGTH])
1262 extra = []
1265 extra.append(zinfo.file_size)
1266 extra.append(zinfo.compress_size)
1274 extra.append(zinfo.header_offset)
1279 extra_data = zinfo.extra
1280 if extra:
1281 # Append a ZIP64 field to the extra's
1283 '<HH' + 'Q'*len(extra),
1284 1, 8*len(extra), *extra) + extra_data