Class DWARFEndianity
- java.lang.Object
-
- ghidra.app.util.bin.format.dwarf4.encoding.DWARFEndianity
-
public final class DWARFEndianity extends java.lang.Object
DWARF Endianity consts from www.dwarfstd.org/doc/DWARF4.pdf
-
-
Field Summary
Fields Modifier and Type Field Description static int
DW_END_big
static int
DW_END_default
static int
DW_END_hi_user
static int
DW_END_little
static int
DW_END_lo_user
-
Constructor Summary
Constructors Constructor Description DWARFEndianity()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
getEndianity(long endian, boolean defaultisBigEndian)
Get the endianity given a DWARFEndianity value.
-
-
-
Field Detail
-
DW_END_default
public static final int DW_END_default
- See Also:
- Constant Field Values
-
DW_END_big
public static final int DW_END_big
- See Also:
- Constant Field Values
-
DW_END_little
public static final int DW_END_little
- See Also:
- Constant Field Values
-
DW_END_lo_user
public static final int DW_END_lo_user
- See Also:
- Constant Field Values
-
DW_END_hi_user
public static final int DW_END_hi_user
- See Also:
- Constant Field Values
-
-
Method Detail
-
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:
java.lang.IllegalArgumentException
- if an unknown endian value is given
-
-