Package ghidra.program.model.data
Enum Class StringLayoutEnum
- All Implemented Interfaces:
- Serializable,- Comparable<StringLayoutEnum>,- Constable
Controls strings termination
 
- 
Nested Class SummaryNested classes/interfaces inherited from class java.lang.EnumEnum.EnumDesc<E extends Enum<E>>
- 
Enum Constant SummaryEnum ConstantsEnum ConstantDescriptionFixed length sequence of characters, all nulls retained.Fixed length string, trailing nulls trimmed, interior nulls retained.Null-terminated string that is limited to it's container's length.Null terminated string that ignores it's container's length when searching for terminating null character.Pascal string, using 1 byte for length field, max 255 char elements.Pascal string, using 2 bytes for length field, max 64k char elements
- 
Method SummaryModifier and TypeMethodDescriptionbooleanReturns true if this layout is one of the fixed-size types.booleanReturns true if this layout is one of the null terminated types.booleanisPascal()Returns true if this layout is one of the pascal types.booleanReturns true if this layout should have its trailing null characters trimmed.toString()static StringLayoutEnumReturns the enum constant of this class with the specified name.static StringLayoutEnum[]values()Returns an array containing the constants of this enum class, in the order they are declared.
- 
Enum Constant Details- 
FIXED_LENFixed length string, trailing nulls trimmed, interior nulls retained.
- 
CHAR_SEQFixed length sequence of characters, all nulls retained.
- 
NULL_TERMINATED_UNBOUNDEDNull terminated string that ignores it's container's length when searching for terminating null character.
- 
NULL_TERMINATED_BOUNDEDNull-terminated string that is limited to it's container's length.
- 
PASCAL_255Pascal string, using 1 byte for length field, max 255 char elements.
- 
PASCAL_64kPascal string, using 2 bytes for length field, max 64k char elements
 
- 
- 
Method Details- 
valuesReturns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
 
- 
valueOfReturns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
- name- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
- IllegalArgumentException- if this enum class has no constant with the specified name
- NullPointerException- if the argument is null
 
- 
toString- Overrides:
- toStringin class- Enum<StringLayoutEnum>
 
- 
isPascalpublic boolean isPascal()Returns true if this layout is one of the pascal types.- Returns:
- boolean true if pascal
 
- 
isNullTerminatedpublic boolean isNullTerminated()Returns true if this layout is one of the null terminated types.- Returns:
- boolean true if null terminated string
 
- 
shouldTrimTrailingNullspublic boolean shouldTrimTrailingNulls()Returns true if this layout should have its trailing null characters trimmed.- Returns:
- boolean true if trailing nulls should be trimmed
 
- 
isFixedLenpublic boolean isFixedLen()Returns true if this layout is one of the fixed-size types.- Returns:
- boolean true if fixed length
 
 
-