Package ghidra.app.util.opinion
Class DyldCacheUtils.SplitDyldCache
- java.lang.Object
-
- ghidra.app.util.opinion.DyldCacheUtils.SplitDyldCache
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
- Enclosing class:
- DyldCacheUtils
public static class DyldCacheUtils.SplitDyldCache extends java.lang.Object implements java.io.CloseableClass to store a "split" DYLD Cache, which is split across several files (base file, .1, .2, .symbols, etc).
-
-
Constructor Summary
Constructors Constructor Description SplitDyldCache(ByteProvider baseProvider, boolean shouldProcessSymbols, boolean shouldCombineSplitFiles, MessageLog log, TaskMonitor monitor)Creates a newDyldCacheUtils.SplitDyldCache
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()DyldCacheHeadergetDyldCacheHeader(int i)Gets the i'thDyldCacheHeaderin the split DYLD CacheByteProvidergetProvider(int i)Gets the i'thByteProviderin the split DYLD Cacheintsize()Gets the number of split DYLD Cache files
-
-
-
Constructor Detail
-
SplitDyldCache
public SplitDyldCache(ByteProvider baseProvider, boolean shouldProcessSymbols, boolean shouldCombineSplitFiles, MessageLog log, TaskMonitor monitor) throws java.io.IOException, CancelledException
Creates a newDyldCacheUtils.SplitDyldCache- Parameters:
baseProvider- TheByteProviderof the "base" DYLD Cache fileshouldProcessSymbols- True if symbols should be processed; otherwise, falseshouldCombineSplitFiles- True if split DYLD Cache files should be automaticallylog- The logmonitor- A cancelable task monitor- Throws:
java.io.IOException- If there was an IO-related issue with processing the split DYLD CacheCancelledException- If the user canceled the operation
-
-
Method Detail
-
getProvider
public ByteProvider getProvider(int i)
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
public DyldCacheHeader getDyldCacheHeader(int i)
Gets the i'thDyldCacheHeaderin the split DYLD Cache- Parameters:
i- The index of theDyldCacheHeaderto get- Returns:
- The i'th
DyldCacheHeaderin 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
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Throws:
java.io.IOException
-
-