Package ghidra.app.util.opinion
Class DyldCacheUtils.SplitDyldCache
java.lang.Object
ghidra.app.util.opinion.DyldCacheUtils.SplitDyldCache
- All Implemented Interfaces:
Closeable,AutoCloseable
- Enclosing class:
- DyldCacheUtils
Class to store a "split" DYLD Cache, which is split across several subcache files (base file,
.1, .2, .symbols, etc).
-
Constructor Summary
ConstructorsConstructorDescriptionSplitDyldCache(ByteProvider baseProvider, boolean shouldProcessSymbols, MessageLog log, TaskMonitor monitor) Creates a newDyldCacheUtils.SplitDyldCache -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()getDyldCacheHeader(int i) Gets the i'thDyldCacheHeaderin the split DYLD CachegetName(int i) Gets the i'thnamein the split DYLD CachegetProvider(int i) Gets the i'thByteProviderin the split DYLD Cacheintsize()Gets the number of split DYLD Cache files
-
Constructor Details
-
SplitDyldCache
public SplitDyldCache(ByteProvider baseProvider, boolean shouldProcessSymbols, MessageLog log, TaskMonitor monitor) throws IOException, CancelledException Creates a newDyldCacheUtils.SplitDyldCache- Parameters:
baseProvider- TheByteProviderof the "base" DYLD Cache fileshouldProcessSymbols- True if symbols should be processed; otherwise, falselog- The logmonitor- A cancelable task monitor- Throws:
IOException- If there was an IO-related issue with processing the split DYLD CacheCancelledException- If the user canceled the operation
-
-
Method Details
-
getProvider
Gets the i'thByteProviderin the split DYLD Cache- Parameters:
i- The index of theByteProviderto get- Returns:
- The i'th
ByteProviderin the split DYLD Cache
-
getDyldCacheHeader
Gets the i'thDyldCacheHeaderin the split DYLD Cache- Parameters:
i- The index of theDyldCacheHeaderto get- Returns:
- The i'th
DyldCacheHeaderin the split DYLD Cache
-
getName
Gets the i'thnamein the split DYLD Cache -
size
public int size()Gets the number of split DYLD Cache files- Returns:
- The number of split DYLD Cache files
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-