Class DWARFEndianity

java.lang.Object
ghidra.app.util.bin.format.dwarf.DWARFEndianity

public final class DWARFEndianity extends Object
DWARF Endianity consts from www.dwarfstd.org/doc/DWARF4.pdf
  • Field Details

  • 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 check
      defaultisBigEndian - 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