MCPcopy Create free account
hub / github.com/CodingGay/BlackDex / IsVersionValid

Method IsVersionValid

Bcore/src/main/cpp/dex/compact_dex_file.cc:40–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38}
39
40bool CompactDexFile::IsVersionValid(const uint8_t* magic) {
41 const uint8_t* version = &magic[sizeof(kDexMagic)];
42 return memcmp(version, kDexMagicVersion, kDexVersionLen) == 0;
43}
44
45bool CompactDexFile::IsMagicValid() const {
46 return IsMagicValid(header_->magic_);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected