Exemple #1
0
 public CQI_ReportConfig Decode(BitArrayInputStream input)
 {
     CQI_ReportConfig config = new CQI_ReportConfig();
     config.InitDefaults();
     BitMaskStream stream = new BitMaskStream(input, 2);
     if (stream.Read())
     {
         int nBits = 3;
         config.cqi_ReportModeAperiodic = (CQI_ReportModeAperiodic)input.ReadBits(nBits);
     }
     config.nomPDSCH_RS_EPRE_Offset = input.ReadBits(3) + -1;
     if (stream.Read())
     {
         config.cqi_ReportPeriodic = CQI_ReportPeriodic.PerDecoder.Instance.Decode(input);
     }
     return config;
 }
            public CQI_ReportConfig Decode(BitArrayInputStream input)
            {
                CQI_ReportConfig config = new CQI_ReportConfig();

                config.InitDefaults();
                BitMaskStream stream = new BitMaskStream(input, 2);

                if (stream.Read())
                {
                    int nBits = 3;
                    config.cqi_ReportModeAperiodic = (CQI_ReportModeAperiodic)input.readBits(nBits);
                }
                config.nomPDSCH_RS_EPRE_Offset = input.readBits(3) + -1;
                if (stream.Read())
                {
                    config.cqi_ReportPeriodic = CQI_ReportPeriodic.PerDecoder.Instance.Decode(input);
                }
                return(config);
            }