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

Method IsMagicValid

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

Source from the content-addressed store, hash-verified

34}
35
36bool CompactDexFile::IsMagicValid(const uint8_t* magic) {
37 return (memcmp(magic, kDexMagic, sizeof(kDexMagic)) == 0);
38}
39
40bool CompactDexFile::IsVersionValid(const uint8_t* magic) {
41 const uint8_t* version = &magic[sizeof(kDexMagic)];

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected