Home
last modified time | relevance | path

Searched refs:magic_ (Results 1 – 11 of 11) sorted by relevance

/art/runtime/
Doat.cc84 static_assert(sizeof(magic_) == sizeof(kOatMagic), in OatHeader()
89 memcpy(magic_, kOatMagic, sizeof(kOatMagic)); in OatHeader()
99 if (memcmp(magic_, kOatMagic, sizeof(kOatMagic)) != 0) { in IsValid()
118 if (memcmp(magic_, kOatMagic, sizeof(kOatMagic)) != 0) { in GetValidationErrorMessage()
122 magic_[0], magic_[1], magic_[2], magic_[3]); in GetValidationErrorMessage()
144 return reinterpret_cast<const char*>(magic_); in GetMagic()
Dimage.cc73 memcpy(magic_, kImageMagic, sizeof(kImageMagic)); in ImageHeader()
101 if (memcmp(magic_, kImageMagic, sizeof(kImageMagic)) != 0) { in IsValid()
128 return reinterpret_cast<const char*>(magic_); in GetMagic()
Doat.h131 uint8_t magic_[4]; variable
Ddex_file.cc472 if (!IsMagicValid(header_->magic_)) { in CheckMagicAndVersion()
475 << " " << header_->magic_[0] in CheckMagicAndVersion()
476 << " " << header_->magic_[1] in CheckMagicAndVersion()
477 << " " << header_->magic_[2] in CheckMagicAndVersion()
478 << " " << header_->magic_[3]; in CheckMagicAndVersion()
482 if (!IsVersionValid(header_->magic_)) { in CheckMagicAndVersion()
485 << " " << header_->magic_[4] in CheckMagicAndVersion()
486 << " " << header_->magic_[5] in CheckMagicAndVersion()
487 << " " << header_->magic_[6] in CheckMagicAndVersion()
488 << " " << header_->magic_[7]; in CheckMagicAndVersion()
[all …]
Dimage.h296 uint8_t magic_[4]; variable
Ddex_file_verifier_test.cc62 size_t offset = OFFSETOF_MEMBER(DexFile::Header, magic_) + 6; in MakeDexVersion37()
117 const uint32_t non_sum = sizeof(DexFile::Header::magic_) + sizeof(DexFile::Header::checksum_); in FixUpChecksum()
Dcheck_jni.cc1469 magic_(kGuardMagic), adler_(adler), original_ptr_(original_buf), original_length_(len) { in GuardedCopy()
1515 if (UNLIKELY(memcmp(&magic_, &kMagicCmp, 4) != 0)) { in CheckHeader()
1517 memcpy(buf, &magic_, 4); in CheckHeader()
1598 const uint32_t magic_; member in art::GuardedCopy
Ddex_file.h91 uint8_t magic_[8]; member
Ddex_file_verifier.cc272 const uint32_t non_sum = sizeof(header_->magic_) + sizeof(header_->checksum_); in CheckHeader()
/art/compiler/utils/
Dtest_dex_file_builder.h90 std::copy_n(DexFile::kDexMagic, 4u, header->magic_); in Build()
91 std::copy_n(DexFile::kDexMagicVersions[0], 4u, header->magic_ + 4u); in Build()
222 size_t skip = sizeof(header->magic_) + sizeof(header->checksum_); in Build()
/art/dexdump/
Ddexdump.cc356 char sanitized[sizeof(pHeader.magic_) * 2 + 1]; in dumpFileHeader()
358 asciify(sanitized, pHeader.magic_, sizeof(pHeader.magic_)); in dumpFileHeader()
1420 fileName, pDexFile->GetHeader().magic_ + 4); in processDexFile()