Example #1
0
            public X2TNLConfigurationInfo Decode(BitArrayInputStream input)
            {
                X2TNLConfigurationInfo info = new X2TNLConfigurationInfo();

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

                info.eNBX2TransportLayerAddresses = new List <string>();
                int nBits = 1;
                int num5  = input.readBits(nBits) + 1;

                for (int i = 0; i < num5; i++)
                {
                    input.readBit();
                    int num = input.readBits(8);
                    input.skipUnreadedBits();
                    string item = input.readBitString(num + 1);
                    info.eNBX2TransportLayerAddresses.Add(item);
                }
                if (stream.Read())
                {
                    input.skipUnreadedBits();
                    info.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);
                        info.iE_Extensions.Add(field);
                    }
                }
                return(info);
            }
Example #2
0
 public X2TNLConfigurationInfo Decode(BitArrayInputStream input)
 {
     X2TNLConfigurationInfo info = new X2TNLConfigurationInfo();
     info.InitDefaults();
     BitMaskStream stream = (input.ReadBit() != 0) ? new BitMaskStream(input, 1) : new BitMaskStream(input, 1);
     info.eNBX2TransportLayerAddresses = new List<string>();
     int nBits = 1;
     int num5 = input.ReadBits(nBits) + 1;
     for (int i = 0; i < num5; i++)
     {
         input.ReadBit();
         int num = input.ReadBits(8);
         input.skipUnreadedBits();
         string item = input.ReadBitString(num + 1);
         info.eNBX2TransportLayerAddresses.Add(item);
     }
     if (stream.Read())
     {
         input.skipUnreadedBits();
         info.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);
             info.iE_Extensions.Add(field);
         }
     }
     return info;
 }