Package ghidra.app.util.bin.format.elf
Class ElfString
- java.lang.Object
-
- ghidra.app.util.bin.format.elf.ElfString
-
public class ElfString extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ElfString()
DO NOT USE THIS CONSTRUCTOR, USE create*(GenericFactory ...) FACTORY METHODS INSTEAD.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ElfString
createElfString(FactoryBundledWithBinaryReader reader, int stringOffset, ElfHeader header)
Read an ElfString at the readers current position.java.lang.String
getString()
int
getStringOffset()
-
-
-
Method Detail
-
createElfString
public static ElfString createElfString(FactoryBundledWithBinaryReader reader, int stringOffset, ElfHeader header) throws java.io.IOException
Read an ElfString at the readers current position. ElfString only supports null-terminated ASCII strings.- Parameters:
reader
- reader positioned at start of stringstringOffset
- string offset from start of string tableheader
- Elf header object- Returns:
- Elf string object
- Throws:
java.io.IOException
-
getString
public java.lang.String getString()
- Returns:
- string object
-
getStringOffset
public int getStringOffset()
- Returns:
- string offset within string table
-
-