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.Closeable
Class 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 void
close()
DyldCacheHeader
getDyldCacheHeader(int i)
Gets the i'thDyldCacheHeader
in the split DYLD CacheByteProvider
getProvider(int i)
Gets the i'thByteProvider
in the split DYLD Cacheint
size()
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
- TheByteProvider
of 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'thByteProvider
in the split DYLD Cache- Parameters:
i
- The index of theByteProvider
to get- Returns:
- The i'th
ByteProvider
in the split DYLD Cache
-
getDyldCacheHeader
public DyldCacheHeader getDyldCacheHeader(int i)
Gets the i'thDyldCacheHeader
in the split DYLD Cache- Parameters:
i
- The index of theDyldCacheHeader
to get- Returns:
- The i'th
DyldCacheHeader
in 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:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Throws:
java.io.IOException
-
-