Class GoBaseType
java.lang.Object
ghidra.app.util.bin.format.golang.rtti.types.GoBaseType
- All Implemented Interfaces:
StructureVerifier
Represents the fundamental Go rtti type information.
The in-memory instance will typically be part of a specialized type structure, depending on the 'kind' of this type.
Additionally, there can be an GoUncommonType structure immediately after this type, if
the uncommon bit is set in tflag.
struct specialized_type { basetype_struct; (various_fields)* } struct uncommon;
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetFlags()Returns theGoTypeFlags assigned to this type definition.Returns name of this type, as aGoName.getKind()Returns theGoKindenum assigned to this type definition.getName()Returns the name of this type.Returns reference to theGoTypethat represents a pointer to this type.longgetSize()Returns the size of the type being defined by this structure.intgetTflag()Returns the raw flag value.booleanReturns true if this type definition's flags indicate there is a following GoUncommon structure.booleanisValid()
-
Constructor Details
-
GoBaseType
public GoBaseType()
-
-
Method Details
-
getSize
public long getSize()Returns the size of the type being defined by this structure.- Returns:
- the size of the type being defined by this structure
-
getKind
Returns theGoKindenum assigned to this type definition.- Returns:
- the
GoKindenum assigned to this type definition
-
getFlags
Returns theGoTypeFlags assigned to this type definition.- Returns:
- the
GoTypeFlags assigned to this type definition
-
getTflag
public int getTflag()Returns the raw flag value.- Returns:
- the raw flag value
-
hasUncommonType
public boolean hasUncommonType()Returns true if this type definition's flags indicate there is a following GoUncommon structure.- Returns:
- true if this type definition's flags indicate there is a following GoUncommon structure
-
getGoName
Returns name of this type, as aGoName.- Returns:
- name of this type, as a
GoName - Throws:
IOException- if error reading data
-
getName
Returns the name of this type.- Returns:
- the name of this type
-
getPtrToThis
Returns reference to theGoTypethat represents a pointer to this type.- Returns:
- reference to the
GoTypethat represents a pointer to this type - Throws:
IOException- if error reading
-
isValid
public boolean isValid()- Specified by:
isValidin interfaceStructureVerifier
-