protected virtual void ParseContent() { var taggedObjects = TaggedObject.CreateObjects( base.TaggedObject.AllData, base.TaggedObject.WorkloadOffset, base.TaggedObject.WorkloadLength); if (taggedObjects != null && taggedObjects.Length > 0) { var objects = new List <Asn1Object>(); foreach (var taggedObject in taggedObjects) { var asn1 = ObjectFactory.CreateAsn1Object(base.Document, taggedObject, this); if (asn1 != null) { objects.Add(asn1); } } Nodes = objects.ToArray(); } else { Nodes = new Asn1Object[0]; } }
private static TaggedObject[] CreateTaggedObjects(byte[] data) { return(TaggedObject.CreateObjects(data, 0, data.Length)); }