Package ghidra.app.util.bin.format.dwarf
Class DWARFEndianity
java.lang.Object
ghidra.app.util.bin.format.dwarf.DWARFEndianity
DWARF Endianity consts from www.dwarfstd.org/doc/DWARF4.pdf
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
getEndianity
(long endian, boolean defaultisBigEndian) Get the endianity given a DWARFEndianity value.
-
Field Details
-
DW_END_default
public static final int DW_END_default- See Also:
-
DW_END_big
public static final int DW_END_big- See Also:
-
DW_END_little
public static final int DW_END_little- See Also:
-
DW_END_lo_user
public static final int DW_END_lo_user- See Also:
-
DW_END_hi_user
public static final int DW_END_hi_user- See Also:
-
-
Constructor Details
-
DWARFEndianity
public DWARFEndianity()
-
-
Method Details
-
getEndianity
public static boolean getEndianity(long endian, boolean defaultisBigEndian) Get the endianity given a DWARFEndianity value.- Parameters:
endian
- DWARFEndianity value to checkdefaultisBigEndian
- true if by default is big endian and false otherwise- Returns:
- true if big endian and false if little endian
- Throws:
IllegalArgumentException
- if an unknown endian value is given
-