예제 #1
0
파일: Outcome.cs 프로젝트: ouyh18/LteTools
 public TraceActivation Decode(BitArrayInputStream input)
 {
     TraceActivation activation = new TraceActivation();
     activation.InitDefaults();
     BitMaskStream stream = (input.readBit() != 0) ? new BitMaskStream(input, 1) : new BitMaskStream(input, 1);
     input.skipUnreadedBits();
     activation.eUTRANTraceID = input.readOctetString(8);
     activation.interfacesToTrace = input.readBitString(8);
     int nBits = (input.readBit() == 0) ? 3 : 3;
     activation.traceDepth = (TraceDepth)input.readBits(nBits);
     input.readBit();
     int num = input.readBits(8);
     input.skipUnreadedBits();
     activation.traceCollectionEntityIPAddress = input.readBitString(num + 1);
     if (stream.Read())
     {
         input.skipUnreadedBits();
         activation.iE_Extensions = new List<ProtocolExtensionField>();
         nBits = 0x10;
         int num5 = input.readBits(nBits) + 1;
         for (int i = 0; i < num5; i++)
         {
             ProtocolExtensionField item = ProtocolExtensionField.PerDecoder.Instance.Decode(input);
             activation.iE_Extensions.Add(item);
         }
     }
     return activation;
 }