Lines Matching refs:dt_entry
246 def _update_dt_entry_header(self, dt_entry, metadata_offset): argument
259 struct.pack_into('>8I', self.__metadata, metadata_offset, dt_entry.size,
260 dt_entry.dt_offset, dt_entry.image_id, dt_entry.rev,
261 dt_entry.custom0, dt_entry.custom1, dt_entry.custom2,
262 dt_entry.custom3)
264 struct.pack_into('>8I', self.__metadata, metadata_offset, dt_entry.size,
265 dt_entry.dt_offset, dt_entry.image_id, dt_entry.rev,
266 dt_entry.flags, dt_entry.custom0, dt_entry.custom1,
267 dt_entry.custom2)
279 for dt_entry in self.__dt_entries:
280 self._update_dt_entry_header(dt_entry, metadata_offset)
338 dt_entry = DtEntry(**params)
339 self.__dt_entries.append(dt_entry)
370 def _find_dt_entry_with_same_file(self, dt_entry): argument
381 dt_entry_path = os.path.realpath(dt_entry.dt_file.name)
433 for dt_entry in self.__dt_entries:
435 sb.append(str(dt_entry))
470 dt_entry = dt_entry_file.read()
474 dt_entry = compression_object.compress(dt_entry_file.read())
475 dt_entry += compression_object.flush()
476 return dt_entry, len(dt_entry)
505 for dt_entry in dt_entries:
506 if not isinstance(dt_entry, DtEntry):
508 entry = self._find_dt_entry_with_same_file(dt_entry)
509 dt_entry_compression_info = dt_entry.compression_info()
511 dt_entry.dt_offset = entry.dt_offset
512 dt_entry.size = entry.size
514 dt_entry.dt_offset = dt_offset
515 compressed_entry, dt_entry.size = self.compress_dt_entry(dt_entry_compression_info,
516 dt_entry.dt_file)
518 dt_offset += dt_entry.size
519 self.total_size += dt_entry.size
520 self.__dt_entries.append(dt_entry)