Example #1
0
 public IRAT_ParametersCDMA2000_1XRTT Decode(BitArrayInputStream input)
 {
     IRAT_ParametersCDMA2000_1XRTT scdma_xrtt = new IRAT_ParametersCDMA2000_1XRTT();
     scdma_xrtt.InitDefaults();
     scdma_xrtt.supportedBandList1XRTT = new List<BandclassCDMA2000>();
     int nBits = 5;
     int num3 = input.readBits(nBits) + 1;
     for (int i = 0; i < num3; i++)
     {
         nBits = (input.readBit() == 0) ? 5 : 5;
         BandclassCDMA2000 item = (BandclassCDMA2000)input.readBits(nBits);
         scdma_xrtt.supportedBandList1XRTT.Add(item);
     }
     nBits = 1;
     scdma_xrtt.tx_Config1XRTT = (tx_Config1XRTT_Enum)input.readBits(nBits);
     nBits = 1;
     scdma_xrtt.rx_Config1XRTT = (rx_Config1XRTT_Enum)input.readBits(nBits);
     return scdma_xrtt;
 }
Example #2
0
            public IRAT_ParametersCDMA2000_1XRTT Decode(BitArrayInputStream input)
            {
                IRAT_ParametersCDMA2000_1XRTT scdma_xrtt = new IRAT_ParametersCDMA2000_1XRTT();

                scdma_xrtt.InitDefaults();
                scdma_xrtt.supportedBandList1XRTT = new List <BandclassCDMA2000>();
                int nBits = 5;
                int num3  = input.ReadBits(nBits) + 1;

                for (int i = 0; i < num3; i++)
                {
                    nBits = (input.ReadBit() == 0) ? 5 : 5;
                    BandclassCDMA2000 item = (BandclassCDMA2000)input.ReadBits(nBits);
                    scdma_xrtt.supportedBandList1XRTT.Add(item);
                }
                nBits = 1;
                scdma_xrtt.tx_Config1XRTT = (tx_Config1XRTT_Enum)input.ReadBits(nBits);
                nBits = 1;
                scdma_xrtt.rx_Config1XRTT = (rx_Config1XRTT_Enum)input.ReadBits(nBits);
                return(scdma_xrtt);
            }