Package ghidra.program.model.data
Enum StringLayoutEnum
- java.lang.Object
-
- java.lang.Enum<StringLayoutEnum>
-
- ghidra.program.model.data.StringLayoutEnum
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<StringLayoutEnum>
public enum StringLayoutEnum extends java.lang.Enum<StringLayoutEnum>
Controls strings terminationFIXED_LEN
(ie. fixed length, trailing nulls trimmed, interior nulls retained)NULL_TERMINATED_UNBOUNDED
(ie. null terminated and ignores data instance length)NULL_TERMINATED_BOUNDED
(ie. null-terminated and limited to data instance)PASCAL_255
(ie. pascal string, using 1 byte for length field, max 255 char elements)PASCAL_64k
(ie. pascal string, using 2 bytes for length field, max 64k char elements)
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FIXED_LEN
NULL_TERMINATED_BOUNDED
NULL_TERMINATED_UNBOUNDED
PASCAL_255
PASCAL_64k
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isNullTerminated()
boolean
isPascal()
java.lang.String
toString()
static StringLayoutEnum
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static StringLayoutEnum[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
FIXED_LEN
public static final StringLayoutEnum FIXED_LEN
-
NULL_TERMINATED_UNBOUNDED
public static final StringLayoutEnum NULL_TERMINATED_UNBOUNDED
-
NULL_TERMINATED_BOUNDED
public static final StringLayoutEnum NULL_TERMINATED_BOUNDED
-
PASCAL_255
public static final StringLayoutEnum PASCAL_255
-
PASCAL_64k
public static final StringLayoutEnum PASCAL_64k
-
-
Method Detail
-
values
public static StringLayoutEnum[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (StringLayoutEnum c : StringLayoutEnum.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static StringLayoutEnum valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Enum<StringLayoutEnum>
-
isPascal
public boolean isPascal()
-
isNullTerminated
public boolean isNullTerminated()
-
-