Process `SharedCacheMachOHeader`.
| 4 | |
| 5 | // Process `SharedCacheMachOHeader`. |
| 6 | class SharedCacheMachOProcessor |
| 7 | { |
| 8 | BinaryNinja::Ref<BinaryNinja::BinaryView> m_view; |
| 9 | BinaryNinja::Ref<BinaryNinja::Logger> m_logger; |
| 10 | std::shared_ptr<VirtualMemory> m_vm; |
| 11 | |
| 12 | bool m_applyFunctions = true; |
| 13 | |
| 14 | public: |
| 15 | explicit SharedCacheMachOProcessor( |
| 16 | BinaryNinja::Ref<BinaryNinja::BinaryView> view, std::shared_ptr<VirtualMemory> vm); |
| 17 | |
| 18 | // Initialize header information such as sections and symbols. |
| 19 | void ApplyHeader(const SharedCache& cache, SharedCacheMachOHeader& header); |
| 20 | |
| 21 | uint64_t ApplyHeaderSections(SharedCacheMachOHeader& header); |
| 22 | |
| 23 | void ApplyHeaderDataVariables(SharedCacheMachOHeader& header); |
| 24 | }; |