Пример #1
0
            public CellReselectionParametersCDMA2000 Decode(BitArrayInputStream input)
            {
                CellReselectionParametersCDMA2000 scdma = new CellReselectionParametersCDMA2000();

                scdma.InitDefaults();
                BitMaskStream stream = new BitMaskStream(input, 1);

                scdma.bandClassList = new List <BandClassInfoCDMA2000>();
                int nBits = 5;
                int num3  = input.readBits(nBits) + 1;

                for (int i = 0; i < num3; i++)
                {
                    BandClassInfoCDMA2000 item = BandClassInfoCDMA2000.PerDecoder.Instance.Decode(input);
                    scdma.bandClassList.Add(item);
                }
                scdma.neighCellList = new List <NeighCellCDMA2000>();
                nBits = 4;
                int num5 = input.readBits(nBits) + 1;

                for (int j = 0; j < num5; j++)
                {
                    NeighCellCDMA2000 lcdma = NeighCellCDMA2000.PerDecoder.Instance.Decode(input);
                    scdma.neighCellList.Add(lcdma);
                }
                scdma.t_ReselectionCDMA2000 = input.readBits(3);
                if (stream.Read())
                {
                    scdma.t_ReselectionCDMA2000_SF = SpeedStateScaleFactors.PerDecoder.Instance.Decode(input);
                }
                return(scdma);
            }
Пример #2
0
 public CellReselectionParametersCDMA2000 Decode(BitArrayInputStream input)
 {
     CellReselectionParametersCDMA2000 scdma = new CellReselectionParametersCDMA2000();
     scdma.InitDefaults();
     BitMaskStream stream = new BitMaskStream(input, 1);
     scdma.bandClassList = new List<BandClassInfoCDMA2000>();
     int nBits = 5;
     int num3 = input.readBits(nBits) + 1;
     for (int i = 0; i < num3; i++)
     {
         BandClassInfoCDMA2000 item = BandClassInfoCDMA2000.PerDecoder.Instance.Decode(input);
         scdma.bandClassList.Add(item);
     }
     scdma.neighCellList = new List<NeighCellCDMA2000>();
     nBits = 4;
     int num5 = input.readBits(nBits) + 1;
     for (int j = 0; j < num5; j++)
     {
         NeighCellCDMA2000 lcdma = NeighCellCDMA2000.PerDecoder.Instance.Decode(input);
         scdma.neighCellList.Add(lcdma);
     }
     scdma.t_ReselectionCDMA2000 = input.readBits(3);
     if (stream.Read())
     {
         scdma.t_ReselectionCDMA2000_SF = SpeedStateScaleFactors.PerDecoder.Instance.Decode(input);
     }
     return scdma;
 }