Lines Matching refs:dt_entry
223 def _update_dt_entry_header(self, dt_entry, metadata_offset): argument
235 struct.pack_into('>8I', self.__metadata, metadata_offset, dt_entry.size,
236 dt_entry.dt_offset, dt_entry.image_id, dt_entry.rev,
237 dt_entry.flags, dt_entry.custom0, dt_entry.custom1,
238 dt_entry.custom2)
249 for dt_entry in self.__dt_entries:
250 self._update_dt_entry_header(dt_entry, metadata_offset)
302 dt_entry = DtEntry(**params)
303 self.__dt_entries.append(dt_entry)
334 def _find_dt_entry_with_same_file(self, dt_entry): argument
345 dt_entry_path = os.path.realpath(dt_entry.dt_file.name)
397 for dt_entry in self.__dt_entries:
399 sb.append(str(dt_entry))
434 dt_entry = dt_entry_file.read()
438 dt_entry = compression_object.compress(dt_entry_file.read())
439 dt_entry += compression_object.flush()
440 return dt_entry, len(dt_entry)
469 for dt_entry in dt_entries:
470 if not isinstance(dt_entry, DtEntry):
472 entry = self._find_dt_entry_with_same_file(dt_entry)
473 dt_entry_compression_info = dt_entry.compression_info(self.version)
476 dt_entry.dt_offset = entry.dt_offset
477 dt_entry.size = entry.size
479 dt_entry.dt_offset = dt_offset
480 compressed_entry, dt_entry.size = self.compress_dt_entry(dt_entry_compression_info,
481 dt_entry.dt_file)
483 dt_offset += dt_entry.size
484 self.total_size += dt_entry.size
485 self.__dt_entries.append(dt_entry)