Ejemplo n.º 1
0
            public FDD_Info Decode(BitArrayInputStream input)
            {
                FDD_Info info = new FDD_Info();

                info.InitDefaults();
                BitMaskStream stream = (input.ReadBit() != 0) ? new BitMaskStream(input, 1) : new BitMaskStream(input, 1);
                int           nBits  = input.ReadBits(1) + 1;

                input.skipUnreadedBits();
                info.uL_EARFCN = input.ReadBits(nBits * 8);
                nBits          = input.ReadBits(1) + 1;
                input.skipUnreadedBits();
                info.dL_EARFCN = input.ReadBits(nBits * 8);
                nBits          = (input.ReadBit() == 0) ? 3 : 3;
                info.uL_Transmission_Bandwidth = (Transmission_Bandwidth)input.ReadBits(nBits);
                nBits = (input.ReadBit() == 0) ? 3 : 3;
                info.dL_Transmission_Bandwidth = (Transmission_Bandwidth)input.ReadBits(nBits);
                if (stream.Read())
                {
                    input.skipUnreadedBits();
                    info.iE_Extensions = new List <ProtocolExtensionField>();
                    nBits = 0x10;
                    int num5 = input.ReadBits(nBits) + 1;
                    for (int i = 0; i < num5; i++)
                    {
                        ProtocolExtensionField item = ProtocolExtensionField.PerDecoder.Instance.Decode(input);
                        info.iE_Extensions.Add(item);
                    }
                }
                return(info);
            }
Ejemplo n.º 2
0
 public FDD_Info Decode(BitArrayInputStream input)
 {
     FDD_Info info = new FDD_Info();
     info.InitDefaults();
     BitMaskStream stream = (input.ReadBit() != 0) ? new BitMaskStream(input, 1) : new BitMaskStream(input, 1);
     int nBits = input.ReadBits(1) + 1;
     input.skipUnreadedBits();
     info.uL_EARFCN = input.ReadBits(nBits * 8);
     nBits = input.ReadBits(1) + 1;
     input.skipUnreadedBits();
     info.dL_EARFCN = input.ReadBits(nBits * 8);
     nBits = (input.ReadBit() == 0) ? 3 : 3;
     info.uL_Transmission_Bandwidth = (Transmission_Bandwidth)input.ReadBits(nBits);
     nBits = (input.ReadBit() == 0) ? 3 : 3;
     info.dL_Transmission_Bandwidth = (Transmission_Bandwidth)input.ReadBits(nBits);
     if (stream.Read())
     {
         input.skipUnreadedBits();
         info.iE_Extensions = new List<ProtocolExtensionField>();
         nBits = 0x10;
         int num5 = input.ReadBits(nBits) + 1;
         for (int i = 0; i < num5; i++)
         {
             ProtocolExtensionField item = ProtocolExtensionField.PerDecoder.Instance.Decode(input);
             info.iE_Extensions.Add(item);
         }
     }
     return info;
 }