Home | History | Annotate | Download | only in dexlayout

Lines Matching defs:header

273   CompactDexFile::Header header;
274 CompactDexFile::WriteMagic(&header.magic_[0]);
275 CompactDexFile::WriteCurrentVersion(&header.magic_[0]);
276 header.checksum_ = header_->Checksum();
277 std::copy_n(header_->Signature(), DexFile::kSha1DigestSize, header.signature_);
278 header.file_size_ = header_->FileSize();
280 // header size.
281 header.header_size_ = GetHeaderSize();
282 header.endian_tag_ = header_->EndianTag();
283 header.link_size_ = header_->LinkSize();
284 header.link_off_ = header_->LinkOffset();
286 header.map_off_ = collections.MapListOffset();
287 header.string_ids_size_ = collections.StringIdsSize();
288 header.string_ids_off_ = collections.StringIdsOffset();
289 header.type_ids_size_ = collections.TypeIdsSize();
290 header.type_ids_off_ = collections.TypeIdsOffset();
291 header.proto_ids_size_ = collections.ProtoIdsSize();
292 header.proto_ids_off_ = collections.ProtoIdsOffset();
293 header.field_ids_size_ = collections.FieldIdsSize();
294 header.field_ids_off_ = collections.FieldIdsOffset();
295 header.method_ids_size_ = collections.MethodIdsSize();
296 header.method_ids_off_ = collections.MethodIdsOffset();
297 header.class_defs_size_ = collections.ClassDefsSize();
298 header.class_defs_off_ = collections.ClassDefsOffset();
299 header.data_size_ = header_->DataSize();
300 header.data_off_ = header_->DataOffset();
301 header.owned_data_begin_ = owned_data_begin_;
302 header.owned_data_end_ = owned_data_end_;
305 header.debug_info_offsets_pos_ = debug_info_offsets_pos_;
306 header.debug_info_offsets_table_offset_ = debug_info_offsets_table_offset_;
307 header.debug_info_base_ = debug_info_base_;
308 header.feature_flags_ = 0u;
312 header.feature_flags_ |= static_cast<uint32_t>(CompactDexFile::FeatureFlags::kDefaultMethods);
315 stream->Overwrite(reinterpret_cast<uint8_t*>(&header), sizeof(header));
319 return sizeof(CompactDexFile::Header);
407 // Starting offset is right after the header.
509 // Write header last.
525 // Rewrite the header with the calculated checksum.