Class ELFStringTable

java.lang.Object
com.pnfsoftware.jeb.core.units.codeobject.ELFStringTable

public class ELFStringTable extends Object
Parser for ELF string tables.
  • Constructor Details

    • ELFStringTable

      public ELFStringTable(byte[] data)
      Parse an encoded string table, such as the one found in a dynamic library's program table.
      Parameters:
      data - string table data, cannot be empty and the first byte must be 0
  • Method Details

    • getAllStrings

      public List<String> getAllStrings()
      Retrieve all the strings stored in the table.
      Returns:
    • getString

      public String getString(int index)
      Retrieve the string at the given index in the table. On error, this method it returns null.
      Parameters:
      index - string index, 0-based
      Returns:
      the string, null on error