Data Type Features
ASN.1 Data Type |
Feature |
Supported (Y/N) |
Example |
|---|---|---|---|
INTEGER |
Value specification |
Y |
MyType ::= INTEGER(1|2|3|4) |
INTEGER |
Value specification with names |
Y |
MyType ::= INTEGER {a(0), b(1), c(2)} |
ENUMERATED |
Enumeration of specified values |
Y |
MyType ::= ENUMERATED {a,b,c(3),d} |
ENUMERATED |
Hybrid use of extension and enumeration of specified values |
Y |
MyType ::= ENUMERATED {a,b,...,c(10)} |
REAL |
Binary encoding |
Y |
RealBase2 ::= REAL(WITH_COMPONENTS{...,base(2)}) |
REAL |
Decimal encoding |
N |
RealBase10 ::= REAL(WITH COMPONENTS{...,base(10)}) |
REAL |
Special value – positive infinity |
Y |
RealVal RealBase2 ::= PLUS-INFINITY |
REAL |
Special value – negative infinity |
Y |
RealVal RealBase2 ::= MINUS-INFINITY |
REAL |
Special value – NAN |
Y |
RealVal RealBase2 ::= NOT-A-NUMBER |
REAL |
Special value – negative 0 |
Y |
RealVal RealBase2 ::= -0.0 |
REAL |
Triplet |
N |
RealVal RealBase2 ::= {114, -5, 14} |
BIT STRING |
Bit indication |
N |
Rights ::= BIT STRING{user-read(0), user-write(1), group-read(2), group-write(3), other-read(4), other-write(5)} group Rights ::= {group-read, group-write| |
SEQUENCE |
Optional field |
Y |
MyType ::= SEQUENCE {a INTEGER OPTIONAL, b BOOLEAN} |
SEQUENCE |
Default value |
Y |
MyType ::= SEQUENCE {a INTEGER DEFAULT, b BOOLEAN} Only non-combination types are supported. |