Exemplo n.º 1
0
        public static void LogCurrentNodeValues(Asn1Reader asn1Reader, string nodeType)
        {
            byte[] headerBytes = Asn1ReaderT.GetHeader(asn1Reader);
            byte[] payloadBytes = Asn1ReaderT.GetPayload(asn1Reader);
            byte[] tagRawDataBytes = Asn1ReaderT.GetTagRawData(asn1Reader);
            int nestedNodeCount = Asn1ReaderT.GetNestedNodeCount(asn1Reader);

            Storage.Put(Storage.CurrentContext, "NodeType", nodeType);
            Storage.Put(Storage.CurrentContext, "Header", headerBytes);
            Storage.Put(Storage.CurrentContext, "Payload", payloadBytes);
            Storage.Put(Storage.CurrentContext, "TagRawData", tagRawDataBytes);
            Storage.Put(Storage.CurrentContext, "NestedNodeCount", nestedNodeCount);
        }
Exemplo n.º 2
0
 static void Init(Asn1Reader asn1Reader, Asn1GeneralizedTime asn1GeneralizedTime)
 {
     asn1GeneralizedTime.Tag = asn1Reader.Tag;
     asn1GeneralizedTime.TagName = asn1Reader.TagName;
     asn1GeneralizedTime.RawData = Asn1ReaderT.GetTagRawData(asn1Reader);
 }