Exemplo n.º 1
0
            public UECapabilityEnquiry_r8_IEs Decode(BitArrayInputStream input)
            {
                UECapabilityEnquiry_r8_IEs es = new UECapabilityEnquiry_r8_IEs();

                es.InitDefaults();
                BitMaskStream stream = new BitMaskStream(input, 1);

                es.ue_CapabilityRequest = new List <RAT_Type>();
                int nBits = 3;
                int num3  = input.readBits(nBits) + 1;

                for (int i = 0; i < num3; i++)
                {
                    nBits = (input.readBit() == 0) ? 3 : 3;
                    RAT_Type item = (RAT_Type)input.readBits(nBits);
                    es.ue_CapabilityRequest.Add(item);
                }
                if (stream.Read())
                {
                    es.nonCriticalExtension = UECapabilityEnquiry_v8a0_IEs.PerDecoder.Instance.Decode(input);
                }
                return(es);
            }
Exemplo n.º 2
0
 public UECapabilityEnquiry_r8_IEs Decode(BitArrayInputStream input)
 {
     UECapabilityEnquiry_r8_IEs es = new UECapabilityEnquiry_r8_IEs();
     es.InitDefaults();
     BitMaskStream stream = new BitMaskStream(input, 1);
     es.ue_CapabilityRequest = new List<RAT_Type>();
     int nBits = 3;
     int num3 = input.readBits(nBits) + 1;
     for (int i = 0; i < num3; i++)
     {
         nBits = (input.readBit() == 0) ? 3 : 3;
         RAT_Type item = (RAT_Type)input.readBits(nBits);
         es.ue_CapabilityRequest.Add(item);
     }
     if (stream.Read())
     {
         es.nonCriticalExtension = UECapabilityEnquiry_v8a0_IEs.PerDecoder.Instance.Decode(input);
     }
     return es;
 }