2.2.2.1 ValueWithCode
The ValueWithCode structure is used to associate a Primitive Value with an Enum that identifies the Primitive Type of the Primitive Value.
|
|
|
|
|
|
|
|
|
|
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 (as specified in [MS-DTYP] section 2.2.22) instance. 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 (17).