Class ELFStringTable
java.lang.Object
com.pnfsoftware.jeb.core.units.codeobject.ELFStringTable
Parser for ELF string tables.
-
Constructor Summary
ConstructorsConstructorDescriptionELFStringTable
(byte[] data) Parse an encoded string table, such as the one found in a dynamic library's program table. -
Method Summary
Modifier and TypeMethodDescriptionRetrieve all the strings stored in the table.getString
(int index) Retrieve the string at the given index in the table.
-
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
Retrieve all the strings stored in the table.- Returns:
-
getString
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
-