protected ASN1Choice SubCreateInstance(ASN1Choice choiceObject, BEREncoding ulazBER) { ulazBER.Decode(); int my_tag = BEREncoding.DecodeTagNumber(ulazBER.GetIdOctets()); foreach(ASN1Type tip in choiceObject.Alternatives) { if (ASN1Type.MatchTag(my_tag, tip)) { choiceObject.Assign(tip.CreateInstance(ulazBER)); return choiceObject; } } /// Dolazak ovdje treba predstavljati /// gresku! return null; }
public override void fromBER(BEREncoding ulazBER) { ulazBER.Decode(); int tagNum = BEREncoding.DecodeTagNumber(ulazBER.GetIdOctets()); DecodeByTagNumber(tagNum, ulazBER); }