2.3.3.2 ValueWithCode
The ValueWithCode structure is used to associate a primitive value with an enum that identifies the primitive type of the primitive value. This structure is used when the primitive type is not String. When primitive type is String, a StringValueWithCode structure is used, as specified in section 2.3.3.3.
|
|
|
|
|
|
|
|
|
|
1 |
|
|
|
|
|
|
|
|
|
2 |
|
|
|
|
|
|
|
|
|
3 |
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
PrimitiveTypeEnum |
Value (variable) |
||||||||||||||||||||||||||||||
|
... |
|||||||||||||||||||||||||||||||
PrimitiveTypeEnum (1 byte): A PrimitiveTypeEnumeration value that specifies the type of the data.
Value (variable): A primitive value whose primitive type is identified by the PrimitiveTypeEnum field. For example, if the value of the PrimitiveTypeEnum field is the PrimitiveTypeEnumeration value INT32, the Value field MUST contain a valid INT32 instance ([MS-DTYP] section 2.2.22). The length of the field is determined by the primitive type of the value. This field MUST NOT be present if the value of PrimitiveTypeEnum is Null (0x11).