Package org.yamcs.xtce
Enum StringDataEncoding.SizeType
- All Implemented Interfaces:
Serializable
,Comparable<StringDataEncoding.SizeType>
- Enclosing class:
- StringDataEncoding
-
Enum Constant Summary
Enum ConstantDescriptionDataEncoding.getFromBinaryTransformAlgorithm()
will be used to decode the datafixed size has to be specified in theDataEncoding.getSizeInBits()
Like PASCAL strings, the size of the string is given as an integer at the start of the string.Like C strings, they are terminated with a special string, usually a null character. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringDataEncoding.SizeType
Returns the enum constant of this type with the specified name.static StringDataEncoding.SizeType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
FIXED
fixed size has to be specified in theDataEncoding.getSizeInBits()
-
TERMINATION_CHAR
Like C strings, they are terminated with a special string, usually a null character. -
LEADING_SIZE
Like PASCAL strings, the size of the string is given as an integer at the start of the string. SizeTag must be an unsigned Integer -
CUSTOM
DataEncoding.getFromBinaryTransformAlgorithm()
will be used to decode the dataIf this is used, the algorithm will also determine the size of the buffer.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-