コード例 #1
0
            public E_RABLevelQoSParameters Decode(BitArrayInputStream input)
            {
                E_RABLevelQoSParameters parameters = new E_RABLevelQoSParameters();

                parameters.InitDefaults();
                BitMaskStream stream = (input.ReadBit() != 0) ? new BitMaskStream(input, 2) : new BitMaskStream(input, 2);

                input.skipUnreadedBits();
                parameters.qCI = input.ReadBits(8);
                parameters.allocationRetentionPriority = AllocationAndRetentionPriority.PerDecoder.Instance.Decode(input);
                if (stream.Read())
                {
                    parameters.gbrQosInformation = GBR_QosInformation.PerDecoder.Instance.Decode(input);
                }
                if (stream.Read())
                {
                    input.skipUnreadedBits();
                    parameters.iE_Extensions = new List <ProtocolExtensionField>();
                    int nBits = 0x10;
                    int num5  = input.ReadBits(nBits) + 1;
                    for (int i = 0; i < num5; i++)
                    {
                        ProtocolExtensionField item = ProtocolExtensionField.PerDecoder.Instance.Decode(input);
                        parameters.iE_Extensions.Add(item);
                    }
                }
                return(parameters);
            }
コード例 #2
0
ファイル: E_RAB_ID.cs プロジェクト: ouyh18/LtePlatform
 public E_RABLevelQoSParameters Decode(BitArrayInputStream input)
 {
     E_RABLevelQoSParameters parameters = new E_RABLevelQoSParameters();
     parameters.InitDefaults();
     BitMaskStream stream = (input.ReadBit() != 0) ? new BitMaskStream(input, 2) : new BitMaskStream(input, 2);
     input.skipUnreadedBits();
     parameters.qCI = input.ReadBits(8);
     parameters.allocationRetentionPriority = AllocationAndRetentionPriority.PerDecoder.Instance.Decode(input);
     if (stream.Read())
     {
         parameters.gbrQosInformation = GBR_QosInformation.PerDecoder.Instance.Decode(input);
     }
     if (stream.Read())
     {
         input.skipUnreadedBits();
         parameters.iE_Extensions = new List<ProtocolExtensionField>();
         int nBits = 0x10;
         int num5 = input.ReadBits(nBits) + 1;
         for (int i = 0; i < num5; i++)
         {
             ProtocolExtensionField item = ProtocolExtensionField.PerDecoder.Instance.Decode(input);
             parameters.iE_Extensions.Add(item);
         }
     }
     return parameters;
 }