コード例 #1
0
            public TDM_AssistanceInfo_r11 Decode(BitArrayInputStream input)
            {
                TDM_AssistanceInfo_r11 _r = new TDM_AssistanceInfo_r11();

                _r.InitDefaults();
                input.ReadBit();
                switch (input.ReadBits(1))
                {
                case 0:
                    _r.drx_AssistanceInfo_r11 = drx_AssistanceInfo_r11_Type.PerDecoder.Instance.Decode(input);
                    return(_r);

                case 1:
                {
                    _r.idc_SubframePatternList_r11 = new List <IDC_SubframePattern_r11>();
                    const int nBits = 3;
                    int       num4  = input.ReadBits(nBits) + 1;
                    for (int i = 0; i < num4; i++)
                    {
                        IDC_SubframePattern_r11 item = IDC_SubframePattern_r11.PerDecoder.Instance.Decode(input);
                        _r.idc_SubframePatternList_r11.Add(item);
                    }
                    return(_r);
                }
                }
                throw new Exception(GetType().Name + ":NoChoice had been choose");
            }
コード例 #2
0
            public IDC_SubframePattern_r11 Decode(BitArrayInputStream input)
            {
                IDC_SubframePattern_r11 _r = new IDC_SubframePattern_r11();

                _r.InitDefaults();
                input.readBit();
                switch (input.readBits(1))
                {
                case 0:
                    _r.subframePatternFDD_r11 = input.readBitString(4);
                    return(_r);

                case 1:
                    _r.subframePatternTDD_r11 = subframePatternTDD_r11_Type.PerDecoder.Instance.Decode(input);
                    return(_r);
                }
                throw new Exception(GetType().Name + ":NoChoice had been choose");
            }
コード例 #3
0
ファイル: IDC.cs プロジェクト: ouyh18/LteTools
            public IDC_SubframePattern_r11 Decode(BitArrayInputStream input)
            {
                IDC_SubframePattern_r11 _r = new IDC_SubframePattern_r11();
                _r.InitDefaults();
                input.readBit();
                switch (input.readBits(1))
                {
                    case 0:
                        _r.subframePatternFDD_r11 = input.readBitString(4);
                        return _r;

                    case 1:
                        _r.subframePatternTDD_r11 = subframePatternTDD_r11_Type.PerDecoder.Instance.Decode(input);
                        return _r;
                }
                throw new Exception(GetType().Name + ":NoChoice had been choose");
            }