Class GoVarlenString
java.lang.Object
ghidra.app.util.bin.format.golang.rtti.GoVarlenString
- All Implemented Interfaces:
StructureReader<GoVarlenString>
A pascal-ish string, using a LEB128 value as the length of the following bytes.
Used mainly in lower-level RTTI structures, this class is a ghidra'ism used to parse the golang rtti data and does not have a counterpart in the golang src.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
getBytes()
int
int
void
Called after an instance has been created and its context has been initialized.
-
Constructor Details
-
GoVarlenString
public GoVarlenString()
-
-
Method Details
-
readStructure
Description copied from interface:StructureReader
Called after an instance has been created and its context has been initialized.- Specified by:
readStructure
in interfaceStructureReader<GoVarlenString>
- Throws:
IOException
-
getStrlen
public int getStrlen() -
getStrlenLen
public int getStrlenLen() -
getBytes
public byte[] getBytes() -
getString
-
getStrlenDataType
-
getValueDataType
-