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

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

                input.skipUnreadedBits();
                item.tAC            = input.readOctetString(2);
                item.broadcastPLMNs = new List <string>();
                int nBits = 3;
                int num5  = input.ReadBits(nBits) + 1;

                for (int i = 0; i < num5; i++)
                {
                    input.skipUnreadedBits();
                    string str = input.readOctetString(3);
                    item.broadcastPLMNs.Add(str);
                }
                if (stream.Read())
                {
                    input.skipUnreadedBits();
                    item.iE_Extensions = new List <ProtocolExtensionField>();
                    nBits = 0x10;
                    int num7 = input.ReadBits(nBits) + 1;
                    for (int j = 0; j < num7; j++)
                    {
                        ProtocolExtensionField field = ProtocolExtensionField.PerDecoder.Instance.Decode(input);
                        item.iE_Extensions.Add(field);
                    }
                }
                return(item);
            }
Exemplo n.º 2
0
 public SupportedTAs_Item Decode(BitArrayInputStream input)
 {
     SupportedTAs_Item item = new SupportedTAs_Item();
     item.InitDefaults();
     BitMaskStream stream = (input.readBit() != 0) ? new BitMaskStream(input, 1) : new BitMaskStream(input, 1);
     input.skipUnreadedBits();
     item.tAC = input.readOctetString(2);
     item.broadcastPLMNs = new List<string>();
     int nBits = 3;
     int num5 = input.readBits(nBits) + 1;
     for (int i = 0; i < num5; i++)
     {
         input.skipUnreadedBits();
         string str = input.readOctetString(3);
         item.broadcastPLMNs.Add(str);
     }
     if (stream.Read())
     {
         input.skipUnreadedBits();
         item.iE_Extensions = new List<ProtocolExtensionField>();
         nBits = 0x10;
         int num7 = input.readBits(nBits) + 1;
         for (int j = 0; j < num7; j++)
         {
             ProtocolExtensionField field = ProtocolExtensionField.PerDecoder.Instance.Decode(input);
             item.iE_Extensions.Add(field);
         }
     }
     return item;
 }