MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / Recognize

Method Recognize

platform/mac/platform_mac.cpp:39–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37 }
38
39 static Ref<Platform> Recognize(BinaryView* view, Metadata* metadata)
40 {
41 auto machoPlatform = metadata->Get("machoplatform");
42 if (!machoPlatform || !machoPlatform->IsUnsignedInteger())
43 return nullptr;
44 if (machoPlatform->GetUnsignedInteger() != 2)
45 return g_macX86;
46
47 return nullptr;
48 }
49};
50
51

Callers

nothing calls this directly

Calls 3

IsUnsignedIntegerMethod · 0.80
GetUnsignedIntegerMethod · 0.80
GetMethod · 0.45

Tested by

no test coverage detected