ASN1ContentInfo.fromSequence constructor
ASN1ContentInfo.fromSequence(
- ASN1Sequence seq
Implementation
ASN1ContentInfo.fromSequence(ASN1Sequence seq) {
contentType = seq.elements!.elementAt(0) as ASN1ObjectIdentifier;
if (seq.elements!.length == 2) {
var el = seq.elements!.elementAt(1);
if (el.tag == 0xA0) {
content = ASN1Parser(el.valueBytes).nextObject();
} else {
content = el;
}
}
}