| 152 | } |
| 153 | |
| 154 | std::string KernelCache::GetImageNameForAddress(uint64_t address) |
| 155 | { |
| 156 | char* name = BNKCViewGetImageNameForAddress(m_object, address); |
| 157 | if (name == nullptr) |
| 158 | return {}; |
| 159 | std::string result = name; |
| 160 | BNFreeString(name); |
| 161 | return result; |
| 162 | } |
| 163 | |
| 164 | std::optional<KernelCacheMachOHeader> KernelCache::GetMachOHeaderForImage(std::string name) |
| 165 | { |
no test coverage detected