예제 #1
0
            public UEAggregateMaximumBitRate Decode(BitArrayInputStream input)
            {
                UEAggregateMaximumBitRate rate = new UEAggregateMaximumBitRate();

                rate.InitDefaults();
                BitMaskStream stream = (input.ReadBit() != 0) ? new BitMaskStream(input, 1) : new BitMaskStream(input, 1);
                int           nBits  = input.ReadBits(3) + 1;

                input.skipUnreadedBits();
                rate.uEaggregateMaximumBitRateDownlink = input.ReadBits(nBits * 8);
                nBits = input.ReadBits(3) + 1;
                input.skipUnreadedBits();
                rate.uEaggregateMaximumBitRateUplink = input.ReadBits(nBits * 8);
                if (stream.Read())
                {
                    input.skipUnreadedBits();
                    rate.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);
                        rate.iE_Extensions.Add(item);
                    }
                }
                return(rate);
            }
예제 #2
0
파일: UE.cs 프로젝트: ouyh18/LteTools
 public UEAggregateMaximumBitRate Decode(BitArrayInputStream input)
 {
     UEAggregateMaximumBitRate rate = new UEAggregateMaximumBitRate();
     rate.InitDefaults();
     BitMaskStream stream = (input.readBit() != 0) ? new BitMaskStream(input, 1) : new BitMaskStream(input, 1);
     int nBits = input.readBits(3) + 1;
     input.skipUnreadedBits();
     rate.uEaggregateMaximumBitRateDownlink = input.readBits(nBits * 8);
     nBits = input.readBits(3) + 1;
     input.skipUnreadedBits();
     rate.uEaggregateMaximumBitRateUplink = input.readBits(nBits * 8);
     if (stream.Read())
     {
         input.skipUnreadedBits();
         rate.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);
             rate.iE_Extensions.Add(item);
         }
     }
     return rate;
 }