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

                _r.InitDefaults();
                bool          flag   = input.readBit() != 0;
                BitMaskStream stream = new BitMaskStream(input, 3);

                _r.sCellIndex_r10 = input.readBits(3) + 1;
                if (stream.Read())
                {
                    _r.cellIdentification_r10 = cellIdentification_r10_Type.PerDecoder.Instance.Decode(input);
                }
                if (stream.Read())
                {
                    _r.radioResourceConfigCommonSCell_r10 = RadioResourceConfigCommonSCell_r10.PerDecoder.Instance.Decode(input);
                }
                if (stream.Read())
                {
                    _r.radioResourceConfigDedicatedSCell_r10 = RadioResourceConfigDedicatedSCell_r10.PerDecoder.Instance.Decode(input);
                }
                if (flag)
                {
                    BitMaskStream stream2 = new BitMaskStream(input, 1);
                    if (stream2.Read())
                    {
                        _r.dl_CarrierFreq_v1090 = input.readBits(0x12) + 0x10000;
                    }
                }
                return(_r);
            }
コード例 #2
0
ファイル: AS.cs プロジェクト: chandusekhar/LtePlatform
            public AS_Config Decode(BitArrayInputStream input)
            {
                BitMaskStream stream;
                AS_Config     config = new AS_Config();

                config.InitDefaults();
                bool flag = input.readBit() != 0;

                config.sourceMeasConfig                  = MeasConfig.PerDecoder.Instance.Decode(input);
                config.sourceRadioResourceConfig         = RadioResourceConfigDedicated.PerDecoder.Instance.Decode(input);
                config.sourceSecurityAlgorithmConfig     = SecurityAlgorithmConfig.PerDecoder.Instance.Decode(input);
                config.sourceUE_Identity                 = input.readBitString(0x10);
                config.sourceMasterInformationBlock      = MasterInformationBlock.PerDecoder.Instance.Decode(input);
                config.sourceSystemInformationBlockType1 = SystemInformationBlockType1.PerDecoder.Instance.Decode(input);
                config.sourceSystemInformationBlockType2 = SystemInformationBlockType2.PerDecoder.Instance.Decode(input);
                config.antennaInfoCommon                 = AntennaInfoCommon.PerDecoder.Instance.Decode(input);
                config.sourceDl_CarrierFreq              = input.readBits(0x10);
                if (flag)
                {
                    stream = new BitMaskStream(input, 1);
                    if (stream.Read())
                    {
                        int nBits = input.readBits(8);
                        config.sourceSystemInformationBlockType1Ext = input.readOctetString(nBits);
                    }
                    config.sourceOtherConfig_r9 = OtherConfig_r9.PerDecoder.Instance.Decode(input);
                }
                if (flag)
                {
                    stream = new BitMaskStream(input, 1);
                    if (!stream.Read())
                    {
                        return(config);
                    }
                    config.sourceSCellConfigList_r10 = new List <SCellToAddMod_r10>();
                    int num2 = 2;
                    int num3 = input.readBits(num2) + 1;
                    for (int i = 0; i < num3; i++)
                    {
                        SCellToAddMod_r10 item = SCellToAddMod_r10.PerDecoder.Instance.Decode(input);
                        config.sourceSCellConfigList_r10.Add(item);
                    }
                }
                return(config);
            }
コード例 #3
0
            public RRCConnectionReconfiguration_v1020_IEs Decode(BitArrayInputStream input)
            {
                int num2;
                RRCConnectionReconfiguration_v1020_IEs es = new RRCConnectionReconfiguration_v1020_IEs();

                es.InitDefaults();
                BitMaskStream stream = new BitMaskStream(input, 3);

                if (stream.Read())
                {
                    es.sCellToReleaseList_r10 = new List <long>();
                    num2 = 2;
                    int num3 = input.ReadBits(num2) + 1;
                    for (int i = 0; i < num3; i++)
                    {
                        long item = input.ReadBits(3) + 1;
                        es.sCellToReleaseList_r10.Add(item);
                    }
                }
                if (stream.Read())
                {
                    es.sCellToAddModList_r10 = new List <SCellToAddMod_r10>();
                    num2 = 2;
                    int num6 = input.ReadBits(num2) + 1;
                    for (int j = 0; j < num6; j++)
                    {
                        SCellToAddMod_r10 _r = SCellToAddMod_r10.PerDecoder.Instance.Decode(input);
                        es.sCellToAddModList_r10.Add(_r);
                    }
                }
                if (stream.Read())
                {
                    es.nonCriticalExtension = RRCConnectionReconfiguration_v1130_IEs.PerDecoder.Instance.Decode(input);
                }
                return(es);
            }
コード例 #4
0
ファイル: CellsToAddMod.cs プロジェクト: ouyh18/LteTools
 public SCellToAddMod_r10 Decode(BitArrayInputStream input)
 {
     SCellToAddMod_r10 _r = new SCellToAddMod_r10();
     _r.InitDefaults();
     bool flag = input.readBit() != 0;
     BitMaskStream stream = new BitMaskStream(input, 3);
     _r.sCellIndex_r10 = input.readBits(3) + 1;
     if (stream.Read())
     {
         _r.cellIdentification_r10 = cellIdentification_r10_Type.PerDecoder.Instance.Decode(input);
     }
     if (stream.Read())
     {
         _r.radioResourceConfigCommonSCell_r10 = RadioResourceConfigCommonSCell_r10.PerDecoder.Instance.Decode(input);
     }
     if (stream.Read())
     {
         _r.radioResourceConfigDedicatedSCell_r10 = RadioResourceConfigDedicatedSCell_r10.PerDecoder.Instance.Decode(input);
     }
     if (flag)
     {
         BitMaskStream stream2 = new BitMaskStream(input, 1);
         if (stream2.Read())
         {
             _r.dl_CarrierFreq_v1090 = input.readBits(0x12) + 0x10000;
         }
     }
     return _r;
 }