Package ghidra.app.util.bin.format.macho
Class MachConstants
java.lang.Object
ghidra.app.util.bin.format.macho.MachConstants
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final int
Intel x86 32-bit Magic Numberstatic final int
Intel x86 64-bit Magic Numberstatic final int
PowerPC 32-bit Magic Numberstatic final int
PowerPC 64-bit Magic Numberstatic final int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic final boolean
isMagic
(int magic) Convenience method for matching the magic number
-
Field Details
-
MH_MAGIC
public static final int MH_MAGICPowerPC 32-bit Magic Number- See Also:
-
MH_MAGIC_64
public static final int MH_MAGIC_64PowerPC 64-bit Magic Number- See Also:
-
MH_CIGAM
public static final int MH_CIGAMIntel x86 32-bit Magic Number- See Also:
-
MH_CIGAM_64
public static final int MH_CIGAM_64Intel x86 64-bit Magic Number- See Also:
-
NAME_LENGTH
public static final int NAME_LENGTH- See Also:
-
DATA_TYPE_CATEGORY
- See Also:
-
-
Constructor Details
-
MachConstants
public MachConstants()
-
-
Method Details
-
isMagic
public static final boolean isMagic(int magic) Convenience method for matching the magic number- Parameters:
magic
- the magic number read from the file- Returns:
- true if the magic number matches
-