• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# Common.BitMaskStream类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中Lte.Domain.Common.BitMaskStream的典型用法代码示例。如果您正苦于以下问题:C# BitMaskStream类的具体用法?C# BitMaskStream怎么用?C# BitMaskStream使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



BitMaskStream类属于Lte.Domain.Common命名空间,在下文中一共展示了BitMaskStream类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: Decode

 public QuantityConfig Decode(BitArrayInputStream input)
 {
     QuantityConfig config = new QuantityConfig();
     config.InitDefaults();
     bool flag = input.ReadBit() != 0;
     BitMaskStream stream = new BitMaskStream(input, 4);
     if (stream.Read())
     {
         config.quantityConfigEUTRA = QuantityConfigEUTRA.PerDecoder.Instance.Decode(input);
     }
     if (stream.Read())
     {
         config.quantityConfigUTRA = QuantityConfigUTRA.PerDecoder.Instance.Decode(input);
     }
     if (stream.Read())
     {
         config.quantityConfigGERAN = QuantityConfigGERAN.PerDecoder.Instance.Decode(input);
     }
     if (stream.Read())
     {
         config.quantityConfigCDMA2000 = QuantityConfigCDMA2000.PerDecoder.Instance.Decode(input);
     }
     if (flag)
     {
         BitMaskStream stream2 = new BitMaskStream(input, 1);
         if (stream2.Read())
         {
             config.quantityConfigUTRA_v1020 = QuantityConfigUTRA_v1020.PerDecoder.Instance.Decode(input);
         }
     }
     return config;
 }
开发者ID:ouyh18,项目名称:LtePlatform,代码行数:32,代码来源:QuantityConfig.cs


示例2: Decode

 public cellAccessRelatedInfo_Type Decode(BitArrayInputStream input)
 {
     var type = new cellAccessRelatedInfo_Type();
     type.InitDefaults();
     var stream = new BitMaskStream(input, 1);
     type.plmn_IdentityList = new List<PLMN_IdentityInfo>();
     var nBits = 3;
     var num3 = input.ReadBits(nBits) + 1;
     for (var i = 0; i < num3; i++)
     {
         var item = PLMN_IdentityInfo.PerDecoder.Instance.Decode(input);
         type.plmn_IdentityList.Add(item);
     }
     type.trackingAreaCode = input.ReadBitString(0x10);
     type.cellIdentity = input.ReadBitString(0x1c);
     nBits = 1;
     type.cellBarred = (cellBarred_Enum)input.ReadBits(nBits);
     nBits = 1;
     type.intraFreqReselection = (intraFreqReselection_Enum)input.ReadBits(nBits);
     type.csg_Indication = input.ReadBit() == 1;
     if (stream.Read())
     {
         type.csg_Identity = input.ReadBitString(0x1b);
     }
     return type;
 }
开发者ID:ouyh18,项目名称:LtePlatform,代码行数:26,代码来源:SystemInformationBlockType1.cs


示例3: Decode

 public interRAT_Parameters_Type Decode(BitArrayInputStream input)
 {
     interRAT_Parameters_Type type = new interRAT_Parameters_Type();
     type.InitDefaults();
     BitMaskStream stream = new BitMaskStream(input, 7);
     if (stream.Read())
     {
         type.utraFDD = IRAT_ParametersUTRA_FDD.PerDecoder.Instance.Decode(input);
     }
     if (stream.Read())
     {
         type.utraTDD128 = IRAT_ParametersUTRA_TDD128.PerDecoder.Instance.Decode(input);
     }
     if (stream.Read())
     {
         type.utraTDD384 = IRAT_ParametersUTRA_TDD384.PerDecoder.Instance.Decode(input);
     }
     if (stream.Read())
     {
         type.utraTDD768 = IRAT_ParametersUTRA_TDD768.PerDecoder.Instance.Decode(input);
     }
     if (stream.Read())
     {
         type.geran = IRAT_ParametersGERAN.PerDecoder.Instance.Decode(input);
     }
     if (stream.Read())
     {
         type.cdma2000_HRPD = IRAT_ParametersCDMA2000_HRPD.PerDecoder.Instance.Decode(input);
     }
     if (stream.Read())
     {
         type.cdma2000_1xRTT = IRAT_ParametersCDMA2000_1XRTT.PerDecoder.Instance.Decode(input);
     }
     return type;
 }
开发者ID:ouyh18,项目名称:LtePlatform,代码行数:35,代码来源:UE_EUTRA_Capability.cs


示例4: Decode

 public SystemInformationBlockType1_v9e0_IEs Decode(BitArrayInputStream input)
 {
     var es = new SystemInformationBlockType1_v9e0_IEs();
     es.InitDefaults();
     var stream = new BitMaskStream(input, 3);
     if (stream.Read())
     {
         es.freqBandIndicator_v9e0 = input.ReadBits(8) + 0x41;
     }
     if (stream.Read())
     {
         es.multiBandInfoList_v9e0 = new List<MultiBandInfo_v9e0>();
         const int nBits = 3;
         var num3 = input.ReadBits(nBits) + 1;
         for (var i = 0; i < num3; i++)
         {
             var item = MultiBandInfo_v9e0.PerDecoder.Instance.Decode(input);
             es.multiBandInfoList_v9e0.Add(item);
         }
     }
     if (stream.Read())
     {
         es.nonCriticalExtension = nonCriticalExtension_Type.PerDecoder.Instance.Decode(input);
     }
     return es;
 }
开发者ID:ouyh18,项目名称:LtePlatform,代码行数:26,代码来源:SystemInformationBlockType1_v9e0_IEs.cs


示例5: Decode

 public PLMN_Identity Decode(BitArrayInputStream input)
 {
     int num2;
     PLMN_Identity identity = new PLMN_Identity();
     identity.InitDefaults();
     BitMaskStream stream = new BitMaskStream(input, 1);
     if (stream.Read())
     {
         identity.mcc = new List<long>();
         num2 = 0;
         int num3 = input.ReadBits(num2) + 3;
         for (int j = 0; j < num3; j++)
         {
             long item = input.ReadBits(4);
             identity.mcc.Add(item);
         }
     }
     identity.mnc = new List<long>();
     num2 = 1;
     int num6 = input.ReadBits(num2) + 2;
     for (int i = 0; i < num6; i++)
     {
         long num8 = input.ReadBits(4);
         identity.mnc.Add(num8);
     }
     return identity;
 }
开发者ID:ouyh18,项目名称:LtePlatform,代码行数:27,代码来源:PLMN_Identity.cs


示例6: Decode

 public Paging Decode(BitArrayInputStream input)
 {
     int num2;
     Paging paging = new Paging();
     paging.InitDefaults();
     BitMaskStream stream = new BitMaskStream(input, 4);
     if (stream.Read())
     {
         paging.pagingRecordList = new List<PagingRecord>();
         num2 = 4;
         int num3 = input.ReadBits(num2) + 1;
         for (int i = 0; i < num3; i++)
         {
             PagingRecord item = PagingRecord.PerDecoder.Instance.Decode(input);
             paging.pagingRecordList.Add(item);
         }
     }
     if (stream.Read())
     {
         num2 = 1;
         paging.systemInfoModification = (systemInfoModification_Enum)input.ReadBits(num2);
     }
     if (stream.Read())
     {
         num2 = 1;
         paging.etws_Indication = (etws_Indication_Enum)input.ReadBits(num2);
     }
     if (stream.Read())
     {
         paging.nonCriticalExtension = Paging_v890_IEs.PerDecoder.Instance.Decode(input);
     }
     return paging;
 }
开发者ID:ouyh18,项目名称:LtePlatform,代码行数:33,代码来源:Paging.cs


示例7: Decode

 public RRM_Config Decode(BitArrayInputStream input)
 {
     int num2;
     RRM_Config config = new RRM_Config();
     config.InitDefaults();
     bool flag = input.ReadBit() != 0;
     BitMaskStream stream = new BitMaskStream(input, 1);
     if (stream.Read())
     {
         num2 = 6;
         config.ue_InactiveTime = (ue_InactiveTime_Enum)input.ReadBits(num2);
     }
     if (flag)
     {
         BitMaskStream stream2 = new BitMaskStream(input, 1);
         if (!stream2.Read())
         {
             return config;
         }
         config.candidateCellInfoList_r10 = new List<CandidateCellInfo_r10>();
         num2 = 3;
         int num3 = input.ReadBits(num2) + 1;
         for (int i = 0; i < num3; i++)
         {
             CandidateCellInfo_r10 item = CandidateCellInfo_r10.PerDecoder.Instance.Decode(input);
             config.candidateCellInfoList_r10.Add(item);
         }
     }
     return config;
 }
开发者ID:ouyh18,项目名称:LtePlatform,代码行数:30,代码来源:RRM_Config.cs


示例8: Decode

 public FreqPriorityEUTRA_v9e0 Decode(BitArrayInputStream input)
 {
     FreqPriorityEUTRA_v9e0 _ve = new FreqPriorityEUTRA_v9e0();
     _ve.InitDefaults();
     BitMaskStream stream = new BitMaskStream(input, 1);
     if (stream.Read())
     {
         _ve.carrierFreq_v9e0 = input.ReadBits(0x12) + 0x10000;
     }
     return _ve;
 }
开发者ID:ouyh18,项目名称:LtePlatform,代码行数:11,代码来源:FreqPriority.cs


示例9: Decode

 public EAB_ConfigPLMN_r11 Decode(BitArrayInputStream input)
 {
     EAB_ConfigPLMN_r11 _r = new EAB_ConfigPLMN_r11();
     _r.InitDefaults();
     BitMaskStream stream = new BitMaskStream(input, 1);
     if (stream.Read())
     {
         _r.eab_Config_r11 = EAB_Config_r11.PerDecoder.Instance.Decode(input);
     }
     return _r;
 }
开发者ID:ouyh18,项目名称:LtePlatform,代码行数:11,代码来源:EAB_Config.cs


示例10: Decode

 public MultiBandInfo_v9e0 Decode(BitArrayInputStream input)
 {
     MultiBandInfo_v9e0 _ve = new MultiBandInfo_v9e0();
     _ve.InitDefaults();
     BitMaskStream stream = new BitMaskStream(input, 1);
     if (stream.Read())
     {
         _ve.freqBandIndicator_v9e0 = input.ReadBits(8) + 0x41;
     }
     return _ve;
 }
开发者ID:ouyh18,项目名称:LtePlatform,代码行数:11,代码来源:MultiBandInfo.cs


示例11: Decode

 public SystemInformationBlockType15_r11 Decode(BitArrayInputStream input)
 {
     int num2;
     var _r = new SystemInformationBlockType15_r11();
     _r.InitDefaults();
     var flag = false;
     flag = input.ReadBit() != 0;
     var stream = flag ? new BitMaskStream(input, 3) : new BitMaskStream(input, 3);
     if (stream.Read())
     {
         _r.mbms_SAI_IntraFreq_r11 = new List<long>();
         num2 = 6;
         var num3 = input.ReadBits(num2) + 1;
         for (var i = 0; i < num3; i++)
         {
             long item = input.ReadBits(0x10);
             _r.mbms_SAI_IntraFreq_r11.Add(item);
         }
     }
     if (stream.Read())
     {
         _r.mbms_SAI_InterFreqList_r11 = new List<MBMS_SAI_InterFreq_r11>();
         num2 = 3;
         var num6 = input.ReadBits(num2) + 1;
         for (var j = 0; j < num6; j++)
         {
             var _r2 = MBMS_SAI_InterFreq_r11.PerDecoder.Instance.Decode(input);
             _r.mbms_SAI_InterFreqList_r11.Add(_r2);
         }
     }
     if (stream.Read())
     {
         var nBits = input.ReadBits(8);
         _r.lateNonCriticalExtension = input.readOctetString(nBits);
     }
     if (flag)
     {
         var stream2 = new BitMaskStream(input, 1);
         if (!stream2.Read())
         {
             return _r;
         }
         _r.mbms_SAI_InterFreqList_v1140 = new List<MBMS_SAI_InterFreq_v1140>();
         num2 = 3;
         var num8 = input.ReadBits(num2) + 1;
         for (var k = 0; k < num8; k++)
         {
             var _v = MBMS_SAI_InterFreq_v1140.PerDecoder.Instance.Decode(input);
             _r.mbms_SAI_InterFreqList_v1140.Add(_v);
         }
     }
     return _r;
 }
开发者ID:ouyh18,项目名称:LtePlatform,代码行数:53,代码来源:SystemInformationBlockType15_r11.cs


示例12: Decode

 public ObtainLocationConfig_r11 Decode(BitArrayInputStream input)
 {
     ObtainLocationConfig_r11 _r = new ObtainLocationConfig_r11();
     _r.InitDefaults();
     BitMaskStream stream = new BitMaskStream(input, 1);
     if (stream.Read())
     {
         const int nBits = 1;
         _r.obtainLocation_r11 = (obtainLocation_r11_Enum)input.ReadBits(nBits);
     }
     return _r;
 }
开发者ID:ouyh18,项目名称:LtePlatform,代码行数:12,代码来源:ObtainLocationConfig.cs


示例13: Decode

 public MeasParameters_v1130 Decode(BitArrayInputStream input)
 {
     MeasParameters_v1130 _v = new MeasParameters_v1130();
     _v.InitDefaults();
     BitMaskStream stream = new BitMaskStream(input, 1);
     if (stream.Read())
     {
         const int nBits = 1;
         _v.rsrqMeasWideband_r11 = (rsrqMeasWideband_r11_Enum)input.ReadBits(nBits);
     }
     return _v;
 }
开发者ID:ouyh18,项目名称:LtePlatform,代码行数:12,代码来源:MeasParameters.cs


示例14: Decode

 public SON_Parameters_r9 Decode(BitArrayInputStream input)
 {
     SON_Parameters_r9 _r = new SON_Parameters_r9();
     _r.InitDefaults();
     BitMaskStream stream = new BitMaskStream(input, 1);
     if (stream.Read())
     {
         const int nBits = 1;
         _r.rach_Report_r9 = (rach_Report_r9_Enum)input.ReadBits(nBits);
     }
     return _r;
 }
开发者ID:ouyh18,项目名称:LtePlatform,代码行数:12,代码来源:SON_Parameters.cs


示例15: Decode

 public PRACH_Config Decode(BitArrayInputStream input)
 {
     PRACH_Config config = new PRACH_Config();
     config.InitDefaults();
     BitMaskStream stream = new BitMaskStream(input, 1);
     config.rootSequenceIndex = input.ReadBits(10);
     if (stream.Read())
     {
         config.prach_ConfigInfo = PRACH_ConfigInfo.PerDecoder.Instance.Decode(input);
     }
     return config;
 }
开发者ID:ouyh18,项目名称:LtePlatform,代码行数:12,代码来源:PRACH_Config.cs


示例16: Decode

 public preambleInfo_Type Decode(BitArrayInputStream input)
 {
     preambleInfo_Type type = new preambleInfo_Type();
     type.InitDefaults();
     BitMaskStream stream = new BitMaskStream(input, 1);
     const int nBits = 4;
     type.numberOfRA_Preambles = (numberOfRA_Preambles_Enum)input.ReadBits(nBits);
     if (stream.Read())
     {
         type.preamblesGroupAConfig = preamblesGroupAConfig_Type.PerDecoder.Instance.Decode(input);
     }
     return type;
 }
开发者ID:ouyh18,项目名称:LtePlatform,代码行数:13,代码来源:RACH_Config.cs


示例17: Decode

 public cellReselectionInfoCommon_Type Decode(BitArrayInputStream input)
 {
     var type = new cellReselectionInfoCommon_Type();
     type.InitDefaults();
     var stream = new BitMaskStream(input, 1);
     const int nBits = 4;
     type.q_Hyst = (q_Hyst_Enum)input.ReadBits(nBits);
     if (stream.Read())
     {
         type.speedStateReselectionPars = speedStateReselectionPars_Type.PerDecoder.Instance.Decode(input);
     }
     return type;
 }
开发者ID:ouyh18,项目名称:LtePlatform,代码行数:13,代码来源:SystemInformationBlockType3.cs


示例18: Decode

 public PhysCellIdRange Decode(BitArrayInputStream input)
 {
     PhysCellIdRange range = new PhysCellIdRange();
     range.InitDefaults();
     BitMaskStream stream = new BitMaskStream(input, 1);
     range.start = input.ReadBits(9);
     if (stream.Read())
     {
         const int nBits = 4;
         range.range = (range_Enum)input.ReadBits(nBits);
     }
     return range;
 }
开发者ID:ouyh18,项目名称:LtePlatform,代码行数:13,代码来源:PhysCellId.cs


示例19: Decode

 public OTDOA_PositioningCapabilities_r10 Decode(BitArrayInputStream input)
 {
     OTDOA_PositioningCapabilities_r10 _r = new OTDOA_PositioningCapabilities_r10();
     _r.InitDefaults();
     BitMaskStream stream = new BitMaskStream(input, 1);
     int nBits = 1;
     _r.otdoa_UE_Assisted_r10 = (otdoa_UE_Assisted_r10_Enum)input.ReadBits(nBits);
     if (stream.Read())
     {
         nBits = 1;
         _r.interFreqRSTD_Measurement_r10 = (interFreqRSTD_Measurement_r10_Enum)input.ReadBits(nBits);
     }
     return _r;
 }
开发者ID:ouyh18,项目名称:LtePlatform,代码行数:14,代码来源:OTDOA_PositioningCapabilities.cs


示例20: Decode

 public PhyLayerParameters_v1020 Decode(BitArrayInputStream input)
 {
     int num2;
     PhyLayerParameters_v1020 _v = new PhyLayerParameters_v1020();
     _v.InitDefaults();
     BitMaskStream stream = new BitMaskStream(input, 7);
     if (stream.Read())
     {
         num2 = 1;
         _v.twoAntennaPortsForPUCCH_r10 = (twoAntennaPortsForPUCCH_r10_Enum)input.ReadBits(num2);
     }
     if (stream.Read())
     {
         num2 = 1;
         _v.tm9_With_8Tx_FDD_r10 = (tm9_With_8Tx_FDD_r10_Enum)input.ReadBits(num2);
     }
     if (stream.Read())
     {
         num2 = 1;
         _v.pmi_Disabling_r10 = (pmi_Disabling_r10_Enum)input.ReadBits(num2);
     }
     if (stream.Read())
     {
         num2 = 1;
         _v.crossCarrierScheduling_r10 = (crossCarrierScheduling_r10_Enum)input.ReadBits(num2);
     }
     if (stream.Read())
     {
         num2 = 1;
         _v.simultaneousPUCCH_PUSCH_r10 = (simultaneousPUCCH_PUSCH_r10_Enum)input.ReadBits(num2);
     }
     if (stream.Read())
     {
         num2 = 1;
         _v.multiClusterPUSCH_WithinCC_r10 = (multiClusterPUSCH_WithinCC_r10_Enum)input.ReadBits(num2);
     }
     if (stream.Read())
     {
         _v.nonContiguousUL_RA_WithinCC_List_r10 = new List<NonContiguousUL_RA_WithinCC_r10>();
         num2 = 6;
         int num3 = input.ReadBits(num2) + 1;
         for (int i = 0; i < num3; i++)
         {
             NonContiguousUL_RA_WithinCC_r10 item = NonContiguousUL_RA_WithinCC_r10.PerDecoder.Instance.Decode(input);
             _v.nonContiguousUL_RA_WithinCC_List_r10.Add(item);
         }
     }
     return _v;
 }
开发者ID:ouyh18,项目名称:LtePlatform,代码行数:49,代码来源:PhyLayerParameters.cs



注:本文中的Lte.Domain.Common.BitMaskStream类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# LuaInterface.Lua类代码示例发布时间:2022-05-26
下一篇:
C# Common.BitArrayInputStream类代码示例发布时间:2022-05-26
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap