public UEAggregateMaximumBitrate Decode(BitArrayInputStream input)
            {
                UEAggregateMaximumBitrate bitrate = new UEAggregateMaximumBitrate();

                bitrate.InitDefaults();
                BitMaskStream stream = (input.readBit() != 0) ? new BitMaskStream(input, 1) : new BitMaskStream(input, 1);
                int           nBits  = input.readBits(3) + 1;

                input.skipUnreadedBits();
                bitrate.uEaggregateMaximumBitRateDL = input.readBits(nBits * 8);
                nBits = input.readBits(3) + 1;
                input.skipUnreadedBits();
                bitrate.uEaggregateMaximumBitRateUL = input.readBits(nBits * 8);
                if (stream.Read())
                {
                    input.skipUnreadedBits();
                    bitrate.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);
                        bitrate.iE_Extensions.Add(item);
                    }
                }
                return(bitrate);
            }
Example #2
0
 public UEAggregateMaximumBitrate Decode(BitArrayInputStream input)
 {
     UEAggregateMaximumBitrate bitrate = new UEAggregateMaximumBitrate();
     bitrate.InitDefaults();
     BitMaskStream stream = (input.readBit() != 0) ? new BitMaskStream(input, 1) : new BitMaskStream(input, 1);
     int nBits = input.readBits(3) + 1;
     input.skipUnreadedBits();
     bitrate.uEaggregateMaximumBitRateDL = input.readBits(nBits * 8);
     nBits = input.readBits(3) + 1;
     input.skipUnreadedBits();
     bitrate.uEaggregateMaximumBitRateUL = input.readBits(nBits * 8);
     if (stream.Read())
     {
         input.skipUnreadedBits();
         bitrate.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);
             bitrate.iE_Extensions.Add(item);
         }
     }
     return bitrate;
 }