Asn1CustomStructure

constructor(children: List<Asn1Element>, tag: ULong, tagClass: TagClass = TagClass.UNIVERSAL, sortChildren: Boolean = false, shouldBeSorted: Boolean = false)(source)
constructor(children: List<Asn1Element>, tag: UByte, tagClass: TagClass = TagClass.UNIVERSAL, sortChildren: Boolean = false, shouldBeSorted: Boolean = false)(source)

ASN.1 CONSTRUCTED with custom tag

Parameters

children

the elements to put into this sequence

tag

the custom tag to use

tagClass

the tag class to use for this custom tag. defaults to TagClass.UNIVERSAL

sortChildren

whether to sort the passed child nodes. defaults to false

shouldBeSorted

whether the child nodes of this structure should be sorted according to this structure's definition. Note that this information is lost when parsing custom structures!