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

Method GetReader

view/sharedcache/core/ObjC.cpp:85–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83}
84
85std::shared_ptr<ObjCReader> SharedCacheObjCProcessor::GetReader()
86{
87 const auto controller = DSC::SharedCacheController::FromView(*m_data);
88 // TODO: This should never happen.
89 if (!controller)
90 throw std::runtime_error("SharedCacheController not found for SharedCacheObjCProcessor::GetReader!");
91 auto reader = VirtualMemoryReader(controller->GetCache().GetVirtualMemory(), m_data->GetAddressSize());
92 return std::make_shared<SharedCacheObjCReader>(reader);
93}
94
95void SharedCacheObjCProcessor::GetRelativeMethod(ObjCReader* reader, method_t& meth)
96{

Callers

nothing calls this directly

Calls 3

VirtualMemoryReaderClass · 0.85
GetVirtualMemoryMethod · 0.80
GetAddressSizeMethod · 0.45

Tested by

no test coverage detected