Class CodeSignatureGenericBlob
java.lang.Object
ghidra.app.util.bin.format.macho.commands.codesignature.CodeSignatureGenericBlob
- All Implemented Interfaces:
StructConverter
- Direct Known Subclasses:
CodeSignatureCodeDirectory,CodeSignatureSuperBlob
Represents a CS_GenericBlob structure
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCodeSignatureGenericBlob(BinaryReader reader) Creates a newCodeSignatureGenericBlob -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the length.intgetMagic()Returns the magic.voidmarkup(Program program, Address address, MachHeader header, TaskMonitor monitor, MessageLog log) Marks up thisCodeSignatureGenericBlobdata with data structures and commentsReturns a structure datatype representing the contents of the implementor of this interface.
-
Field Details
-
magic
protected int magic -
length
protected long length -
base
protected long base
-
-
Constructor Details
-
CodeSignatureGenericBlob
Creates a newCodeSignatureGenericBlob- Parameters:
reader- ABinaryReaderpositioned at the start of the structure- Throws:
IOException- if there was an IO-related problem creating the structure
-
-
Method Details
-
getMagic
public int getMagic()Returns the magic.- Returns:
- the magic
-
getLength
public long getLength()Returns the length.- Returns:
- the length
-
markup
public void markup(Program program, Address address, MachHeader header, TaskMonitor monitor, MessageLog log) throws CancelledException Marks up thisCodeSignatureGenericBlobdata with data structures and comments- Parameters:
program- TheProgramto mark upaddress- TheAddressof the blobheader- The Mach-O headermonitor- A cancellable task monitorlog- The log- Throws:
CancelledException- if the user cancelled the operation
-
toDataType
Description copied from interface:StructConverterReturns a structure datatype representing the contents of the implementor of this interface.For example, given:
class A { int foo; double bar; }The return value should be a structure data type with two data type components; an INT and a DOUBLE. The structure should contain field names and, if possible, field comments.
- Specified by:
toDataTypein interfaceStructConverter- Returns:
- returns a structure datatype representing the implementor of this interface
- Throws:
DuplicateNameException- when a datatype of the same name already existsIOException- if an IO-related error occurs- See Also:
-