Friday, 20 April 2018

ASN.1: SET OF: Collection of items of same type

Type: SET OF

Description: It is like SEQUENCE OF type, only difference is that the order of the items may not be same at the receiver end. Suppose you sent the items like 1, 2, 3, but at the receiver end you may receive like 2, 1, 3.       

Example Schema
Person ::= SEQUENCE {
    name VisibleString,
    favoriteColors SET OF VisibleString
}

Sample Data

person Person ::= {
  name "Krishna",
  favoriteColors {"green", "white", "dark blue"}
}



Previous                                                 Next                                                 Home

No comments:

Post a Comment