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

                enb_id.InitDefaults();
                BitMaskStream stream = (input.readBit() != 0) ? new BitMaskStream(input, 1) : 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);
            }
Exemplo n.º 2
0
 public TargeteNB_ID Decode(BitArrayInputStream input)
 {
     TargeteNB_ID enb_id = new TargeteNB_ID();
     enb_id.InitDefaults();
     BitMaskStream stream = (input.readBit() != 0) ? new BitMaskStream(input, 1) : 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;
 }