as Primitive
fun asPrimitive(children: List<Asn1Element>, tag: ULong, tagClass: TagClass = TagClass.UNIVERSAL, sortChildren: Boolean = false, shouldBeSorted: Boolean = false): Asn1CustomStructure
ASN.1 Structure encoded as an ASN.1 Primitive (similar to OCTET STRING containing a valid ASN.1 Structure) with custom tag
Parameters
children
the elements to put into this sequence
tag
the custom tag to use
tag Class
the tag class to use for this custom tag. defaults to TagClass.UNIVERSAL
sort Children
whether to sort the passed child nodes. defaults to false