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

Method IsMagicValid

Bcore/src/main/cpp/dex/standard_dex_file.cc:49–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47}
48
49bool StandardDexFile::IsMagicValid(const uint8_t* magic) {
50 return (memcmp(magic, kDexMagic, sizeof(kDexMagic)) == 0);
51}
52
53bool StandardDexFile::IsVersionValid(const uint8_t* magic) {
54 const uint8_t* version = &magic[sizeof(kDexMagic)];

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected