当前位置: 首页>>代码示例>>C#>>正文


C# Common.BitMaskStream类代码示例

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


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


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