ASN.1 SEQUENCE OF tag: 16

The SEQUENCE OF type is a variant of the SEQUENCE type. SEQUENCE OF indicates an arbitrary number of values of the same type.

Example

In the following example, a value of type PersonnelFile consists of a number of occurrences of values of type PersonnelRecord.

PersonnelRecord ::= SEQUENCE {
                name     OCTET STRING,
                location INTEGER {homeOffice(0),
                                  fieldOffice(1),
                                  roving(2)},
                age      INTEGER OPTIONAL
}

PersonnelFile ::= SEQUENCE OF PersonnelRecord
SEQUENCE OF encoding example
DailyTemperatures ::= SEQUENCE OF INTEGER
weeklyHighs DailyTemperatures ::=  {10, 12, -2, 8}

In BER, the SEQUENCE OF type values defined in the example above are encoded as follows:

30 0C
   02 01 0A
   02 01 0C
   02 01 FE
   02 01 08

Constraints

The SEQUENCE OF type can be constrained by a single value, by type inclusion, by size, and by constraints on its components (inner subtyping).

Related Topics