Beispiel #1
0
            public SourceeNB_ID Decode(BitArrayInputStream input)
            {
                SourceeNB_ID enb_id = new SourceeNB_ID();

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

                enb_id.global_ENB_ID = Global_ENB_ID.PerDecoder.Instance.Decode(input);
                enb_id.selected_TAI  = TAI.PerDecoder.Instance.Decode(input);
                if (stream.Read())
                {
                    input.skipUnreadedBits();
                    enb_id.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);
                        enb_id.iE_Extensions.Add(item);
                    }
                }
                return(enb_id);
            }
Beispiel #2
0
 public SourceeNB_ID Decode(BitArrayInputStream input)
 {
     SourceeNB_ID enb_id = new SourceeNB_ID();
     enb_id.InitDefaults();
     BitMaskStream stream = new BitMaskStream(input, 1);
     enb_id.global_ENB_ID = Global_ENB_ID.PerDecoder.Instance.Decode(input);
     enb_id.selected_TAI = TAI.PerDecoder.Instance.Decode(input);
     if (stream.Read())
     {
         input.skipUnreadedBits();
         enb_id.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);
             enb_id.iE_Extensions.Add(item);
         }
     }
     return enb_id;
 }