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

C# Entities.BitArrayInputStream类代码示例

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

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



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

示例1: Decode

 public SupportedTAs_Item Decode(BitArrayInputStream input)
 {
     SupportedTAs_Item item = new SupportedTAs_Item();
     item.InitDefaults();
     BitMaskStream stream = (input.readBit() != 0) ? new BitMaskStream(input, 1) : new BitMaskStream(input, 1);
     input.skipUnreadedBits();
     item.tAC = input.readOctetString(2);
     item.broadcastPLMNs = new List<string>();
     int nBits = 3;
     int num5 = input.readBits(nBits) + 1;
     for (int i = 0; i < num5; i++)
     {
         input.skipUnreadedBits();
         string str = input.readOctetString(3);
         item.broadcastPLMNs.Add(str);
     }
     if (stream.Read())
     {
         input.skipUnreadedBits();
         item.iE_Extensions = new List<ProtocolExtensionField>();
         nBits = 0x10;
         int num7 = input.readBits(nBits) + 1;
         for (int j = 0; j < num7; j++)
         {
             ProtocolExtensionField field = ProtocolExtensionField.PerDecoder.Instance.Decode(input);
             item.iE_Extensions.Add(field);
         }
     }
     return item;
 }
开发者ID:ouyh18,项目名称:LteTools,代码行数:30,代码来源:TAI.cs


示例2: Decode

 public GBR_QosInformation Decode(BitArrayInputStream input)
 {
     GBR_QosInformation information = new GBR_QosInformation();
     information.InitDefaults();
     BitMaskStream stream = (input.readBit() != 0) ? new BitMaskStream(input, 1) : new BitMaskStream(input, 1);
     int nBits = input.readBits(3) + 1;
     input.skipUnreadedBits();
     information.e_RAB_MaximumBitrateDL = input.readBits(nBits * 8);
     nBits = input.readBits(3) + 1;
     input.skipUnreadedBits();
     information.e_RAB_MaximumBitrateUL = input.readBits(nBits * 8);
     nBits = input.readBits(3) + 1;
     input.skipUnreadedBits();
     information.e_RAB_GuaranteedBitrateDL = input.readBits(nBits * 8);
     nBits = input.readBits(3) + 1;
     input.skipUnreadedBits();
     information.e_RAB_GuaranteedBitrateUL = input.readBits(nBits * 8);
     if (stream.Read())
     {
         input.skipUnreadedBits();
         information.iE_Extensions = new List<ProtocolExtensionField>();
         nBits = 0x10;
         int num5 = input.readBits(nBits) + 1;
         for (int i = 0; i < num5; i++)
         {
             ProtocolExtensionField item = ProtocolExtensionField.PerDecoder.Instance.Decode(input);
             information.iE_Extensions.Add(item);
         }
     }
     return information;
 }
开发者ID:ouyh18,项目名称:LteTools,代码行数:31,代码来源:Qos.cs


示例3: Decode

            public Cause Decode(BitArrayInputStream input)
            {
                int num4;
                Cause cause = new Cause();
                cause.InitDefaults();
                input.readBit();
                switch (input.readBits(3))
                {
                    case 0:
                        num4 = (input.readBit() == 0) ? 6 : 6;
                        cause.radioNetwork = (CauseRadioNetwork)input.readBits(num4);
                        return cause;

                    case 1:
                        num4 = 1;
                        cause.transport = (CauseTransport)input.readBits(num4);
                        return cause;

                    case 2:
                        num4 = (input.readBit() == 0) ? 3 : 3;
                        cause.nas = (CauseNas)input.readBits(num4);
                        return cause;

                    case 3:
                        num4 = (input.readBit() == 0) ? 3 : 3;
                        cause.protocol = (CauseProtocol)input.readBits(num4);
                        return cause;

                    case 4:
                        num4 = (input.readBit() == 0) ? 3 : 3;
                        cause.misc = (CauseMisc)input.readBits(num4);
                        return cause;
                }
                throw new Exception(GetType().Name + ":NoChoice had been choose");
            }
开发者ID:ouyh18,项目名称:LteTools,代码行数:35,代码来源:Cause.cs


示例4: Switcher

        public static object Switcher(long unique, string membername, BitArrayInputStream input)
        {
            long num = unique;
            if (num <= 0x2aL)
            {
                if (num < 0x29L)
                {
                    goto Label_0081;
                }
                switch (((int)(num - 0x29L)))
                {
                    case 0:
                        return id_Number_of_AntennaportsClass.GetMemberObj(membername, input);

                    case 1:
                        return id_CompositeAvailableCapacityGroupClass.GetMemberObj(membername, input);
                }
            }
            if ((num <= 0x3bL) && (num >= 0x37L))
            {
                switch (((int)(num - 0x37L)))
                {
                    case 0:
                        return id_PRACH_ConfigurationClass.GetMemberObj(membername, input);

                    case 1:
                        return id_MBSFN_Subframe_InfoClass.GetMemberObj(membername, input);

                    case 4:
                        return id_DeactivationIndicationClass.GetMemberObj(membername, input);
                }
            }
            Label_0081:
            return null;
        }
开发者ID:ouyh18,项目名称:LteTools,代码行数:35,代码来源:X2AP_PROTOCOL.cs


示例5: Decode

 public InterFreqBandInfo Decode(BitArrayInputStream input)
 {
     InterFreqBandInfo info = new InterFreqBandInfo();
     info.InitDefaults();
     info.interFreqNeedForGaps = input.readBit() == 1;
     return info;
 }
开发者ID:ouyh18,项目名称:LteTools,代码行数:7,代码来源:InterFreq.cs


示例6: Decode

 public UE_CapabilityRAT_Container Decode(BitArrayInputStream input)
 {
     string str;
     int nBits = 0;
     UE_CapabilityRAT_Container container = new UE_CapabilityRAT_Container();
     container.InitDefaults();
     int num2 = (input.readBit() == 0) ? 3 : 3;
     container.rat_Type = (RAT_Type) input.readBits(num2);
     nBits = input.readBits(8);
     if ((container.rat_Type == RAT_Type.eutra) && (nBits > 0))
     {
         str = input.readOctetString(nBits);
         BitArrayInputStream inputStream = GetInputStream(str.Remove(str.Length - 2) + "00000000");
         container.ueCapabilityRAT_Container = UE_EUTRA_Capability.PerDecoder.Instance.Decode(inputStream);
         return container;
     }
     if (container.rat_Type == RAT_Type.cdma2000_1XRTT)
     {
         container.ueCapabilityRAT_Container = A21MobileSubscriptionInformation.PerDecoder.Instance.Decode(input);
         return container;
     }
     str = input.readOctetString(nBits);
     container.ueCapabilityRAT_Container = str;
     return container;
 }
开发者ID:ouyh18,项目名称:LteTools,代码行数:25,代码来源:UE_CapabilityRAT_Container.cs


示例7: Decode

 public CrossCarrierSchedulingConfig_r10 Decode(BitArrayInputStream input)
 {
     CrossCarrierSchedulingConfig_r10 _r = new CrossCarrierSchedulingConfig_r10();
     _r.InitDefaults();
     _r.schedulingCellInfo_r10 = schedulingCellInfo_r10_Type.PerDecoder.Instance.Decode(input);
     return _r;
 }
开发者ID:ouyh18,项目名称:LteTools,代码行数:7,代码来源:CrossCarrierSchedulingConfig.cs


示例8: Decode

 public BCCH_BCH_Message Decode(BitArrayInputStream input)
 {
     BCCH_BCH_Message message = new BCCH_BCH_Message();
     message.InitDefaults();
     message.message = MasterInformationBlock.PerDecoder.Instance.Decode(input);
     return message;
 }
开发者ID:ouyh18,项目名称:LteTools,代码行数:7,代码来源:BCCH.cs


示例9: Decode

 public UEAggregateMaximumBitRate Decode(BitArrayInputStream input)
 {
     UEAggregateMaximumBitRate rate = new UEAggregateMaximumBitRate();
     rate.InitDefaults();
     BitMaskStream stream = (input.readBit() != 0) ? new BitMaskStream(input, 1) : new BitMaskStream(input, 1);
     int nBits = input.readBits(3) + 1;
     input.skipUnreadedBits();
     rate.uEaggregateMaximumBitRateDownlink = input.readBits(nBits * 8);
     nBits = input.readBits(3) + 1;
     input.skipUnreadedBits();
     rate.uEaggregateMaximumBitRateUplink = input.readBits(nBits * 8);
     if (stream.Read())
     {
         input.skipUnreadedBits();
         rate.iE_Extensions = new List<ProtocolExtensionField>();
         nBits = 0x10;
         int num5 = input.readBits(nBits) + 1;
         for (int i = 0; i < num5; i++)
         {
             ProtocolExtensionField item = ProtocolExtensionField.PerDecoder.Instance.Decode(input);
             rate.iE_Extensions.Add(item);
         }
     }
     return rate;
 }
开发者ID:ouyh18,项目名称:LteTools,代码行数:25,代码来源:UE.cs


示例10: Decode

 public E_RABSetupItemBearerSURes Decode(BitArrayInputStream input)
 {
     E_RABSetupItemBearerSURes res = new E_RABSetupItemBearerSURes();
     res.InitDefaults();
     BitMaskStream stream = (input.readBit() != 0) ? new BitMaskStream(input, 1) : new BitMaskStream(input, 1);
     input.readBit();
     res.e_RAB_ID = input.readBits(4);
     input.readBit();
     int num = input.readBits(8);
     input.skipUnreadedBits();
     res.transportLayerAddress = input.readBitString(num + 1);
     input.skipUnreadedBits();
     res.gTP_TEID = input.readOctetString(4);
     if (stream.Read())
     {
         input.skipUnreadedBits();
         res.iE_Extensions = new List<ProtocolExtensionField>();
         const int nBits = 0x10;
         int num5 = input.readBits(nBits) + 1;
         for (int i = 0; i < num5; i++)
         {
             ProtocolExtensionField item = ProtocolExtensionField.PerDecoder.Instance.Decode(input);
             res.iE_Extensions.Add(item);
         }
     }
     return res;
 }
开发者ID:ouyh18,项目名称:LteTools,代码行数:27,代码来源:E_RABSetup.cs


示例11: Decode

 public E_RABs_Admitted_Item Decode(BitArrayInputStream input)
 {
     E_RABs_Admitted_Item item = new E_RABs_Admitted_Item();
     item.InitDefaults();
     BitMaskStream stream = (input.readBit() != 0) ? new BitMaskStream(input, 3) : new BitMaskStream(input, 3);
     input.readBit();
     item.e_RAB_ID = input.readBits(4);
     if (stream.Read())
     {
         item.uL_GTP_TunnelEndpoint = GTPtunnelEndpoint.PerDecoder.Instance.Decode(input);
     }
     if (stream.Read())
     {
         item.dL_GTP_TunnelEndpoint = GTPtunnelEndpoint.PerDecoder.Instance.Decode(input);
     }
     if (stream.Read())
     {
         input.skipUnreadedBits();
         item.iE_Extensions = new List<ProtocolExtensionField>();
         int nBits = 0x10;
         int num5 = input.readBits(nBits) + 1;
         for (int i = 0; i < num5; i++)
         {
             ProtocolExtensionField field = ProtocolExtensionField.PerDecoder.Instance.Decode(input);
             item.iE_Extensions.Add(field);
         }
     }
     return item;
 }
开发者ID:ouyh18,项目名称:LteTools,代码行数:29,代码来源:E_RAB.cs


示例12: Decode

 public UE_associatedLogicalS1_ConnectionItem Decode(BitArrayInputStream input)
 {
     int num4;
     UE_associatedLogicalS1_ConnectionItem item = new UE_associatedLogicalS1_ConnectionItem();
     item.InitDefaults();
     BitMaskStream stream = (input.readBit() != 0) ? new BitMaskStream(input, 3) : new BitMaskStream(input, 3);
     if (stream.Read())
     {
         num4 = input.readBits(2) + 1;
         input.skipUnreadedBits();
         item.mME_UE_S1AP_ID = input.readBits(num4 * 8);
     }
     if (stream.Read())
     {
         num4 = input.readBits(2) + 1;
         input.skipUnreadedBits();
         item.eNB_UE_S1AP_ID = input.readBits(num4 * 8);
     }
     if (stream.Read())
     {
         input.skipUnreadedBits();
         item.iE_Extensions = new List<ProtocolExtensionField>();
         num4 = 0x10;
         int num5 = input.readBits(num4) + 1;
         for (int i = 0; i < num5; i++)
         {
             ProtocolExtensionField field = ProtocolExtensionField.PerDecoder.Instance.Decode(input);
             item.iE_Extensions.Add(field);
         }
     }
     return item;
 }
开发者ID:ouyh18,项目名称:LteTools,代码行数:32,代码来源:UE_associatedLogicalS1.cs


示例13: Decode

 public GUMMEI Decode(BitArrayInputStream input)
 {
     GUMMEI gummei = new GUMMEI();
     gummei.InitDefaults();
     BitMaskStream stream = (input.readBit() != 0) ? new BitMaskStream(input, 1) : new BitMaskStream(input, 1);
     input.skipUnreadedBits();
     gummei.pLMN_Identity = input.readOctetString(3);
     input.skipUnreadedBits();
     gummei.mME_Group_ID = input.readOctetString(2);
     input.skipUnreadedBits();
     gummei.mME_Code = input.readOctetString(1);
     if (stream.Read())
     {
         input.skipUnreadedBits();
         gummei.iE_Extensions = new List<ProtocolExtensionField>();
         int nBits = 0x10;
         int num5 = input.readBits(nBits) + 1;
         for (int i = 0; i < num5; i++)
         {
             ProtocolExtensionField item = ProtocolExtensionField.PerDecoder.Instance.Decode(input);
             gummei.iE_Extensions.Add(item);
         }
     }
     return gummei;
 }
开发者ID:ouyh18,项目名称:LteTools,代码行数:25,代码来源:MME_Code.cs


示例14: Decode

 public CandidateCellInfo_r10 Decode(BitArrayInputStream input)
 {
     CandidateCellInfo_r10 _r = new CandidateCellInfo_r10();
     _r.InitDefaults();
     bool flag = input.readBit() != 0;
     BitMaskStream stream = new BitMaskStream(input, 2);
     _r.physCellId_r10 = input.readBits(9);
     _r.dl_CarrierFreq_r10 = input.readBits(0x10);
     if (stream.Read())
     {
         _r.rsrpResult_r10 = input.readBits(7);
     }
     if (stream.Read())
     {
         _r.rsrqResult_r10 = input.readBits(6);
     }
     if (flag)
     {
         BitMaskStream stream2 = new BitMaskStream(input, 1);
         if (stream2.Read())
         {
             _r.dl_CarrierFreq_v1090 = input.readBits(0x12) + 0x10000;
         }
     }
     return _r;
 }
开发者ID:ouyh18,项目名称:LteTools,代码行数:26,代码来源:CellSelectionInfo.cs


示例15: Decode

 public Neighbour_Information_Element Decode(BitArrayInputStream input)
 {
     Neighbour_Information_Element element = new Neighbour_Information_Element();
     element.InitDefaults();
     BitMaskStream stream = (input.readBit() != 0) ? new BitMaskStream(input, 1) : new BitMaskStream(input, 1);
     element.eCGI = ECGI.PerDecoder.Instance.Decode(input);
     input.readBit();
     input.skipUnreadedBits();
     element.pCI = input.readBits(0x10);
     int nBits = input.readBits(1) + 1;
     input.skipUnreadedBits();
     element.eARFCN = input.readBits(nBits * 8);
     if (stream.Read())
     {
         input.skipUnreadedBits();
         element.iE_Extensions = new List<ProtocolExtensionField>();
         nBits = 0x10;
         int num5 = input.readBits(nBits) + 1;
         for (int i = 0; i < num5; i++)
         {
             ProtocolExtensionField item = ProtocolExtensionField.PerDecoder.Instance.Decode(input);
             element.iE_Extensions.Add(item);
         }
     }
     return element;
 }
开发者ID:ouyh18,项目名称:LteTools,代码行数:26,代码来源:ServedCell.cs


示例16: 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,项目名称:LteTools,代码行数:32,代码来源:QuantityConfig.cs


示例17: 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,项目名称:LteTools,代码行数:33,代码来源:Paging.cs


示例18: Decode

 public CellMeasurementResult_Item Decode(BitArrayInputStream input)
 {
     CellMeasurementResult_Item item = new CellMeasurementResult_Item();
     item.InitDefaults();
     BitMaskStream stream = (input.readBit() != 0) ? new BitMaskStream(input, 4) : new BitMaskStream(input, 4);
     item.cell_ID = ECGI.PerDecoder.Instance.Decode(input);
     if (stream.Read())
     {
         item.hWOverLoadIndicator = HWLoadIndicator.PerDecoder.Instance.Decode(input);
     }
     if (stream.Read())
     {
         item.s1TNLOverLoadIndicator = S1TNLLoadIndicator.PerDecoder.Instance.Decode(input);
     }
     if (stream.Read())
     {
         item.radioResourceStatus = RadioResourceStatus.PerDecoder.Instance.Decode(input);
     }
     if (stream.Read())
     {
         input.skipUnreadedBits();
         item.iE_Extensions = new List<ProtocolExtensionField>();
         const int nBits = 0x10;
         int num5 = input.readBits(nBits) + 1;
         for (int i = 0; i < num5; i++)
         {
             ProtocolExtensionField field = ProtocolExtensionField.PerDecoder.Instance.Decode(input);
             item.iE_Extensions.Add(field);
         }
     }
     return item;
 }
开发者ID:ouyh18,项目名称:LteTools,代码行数:32,代码来源:CellMessage.cs


示例19: Decode

            public string Decode(BitArrayInputStream input)
            {
                input.skipUnreadedBits();
                int nBits = 0;
                while (true)
                {
                    switch (input.readBit())
                    {
                        case 0:
                            nBits += input.readBits(7);
                            goto Label_0096;

                        case 1:
                            switch (input.readBit())
                            {
                                case 0:
                                    nBits += input.readBits(14);
                                    goto Label_0096;

                                case 1:
                                    input.readBits(2);
                                    nBits += input.readBits(4) * 0x400;
                                    break;
                            }
                            break;
                    }
                }
                Label_0096:
                return input.readOctetString(nBits);
            }
开发者ID:ouyh18,项目名称:LteTools,代码行数:30,代码来源:UE_Information.cs


示例20: Decode

 public OtherConfig_r9 Decode(BitArrayInputStream input)
 {
     OtherConfig_r9 _r = new OtherConfig_r9();
     _r.InitDefaults();
     bool flag = input.readBit() != 0;
     BitMaskStream stream = new BitMaskStream(input, 1);
     if (stream.Read())
     {
         _r.reportProximityConfig_r9 = ReportProximityConfig_r9.PerDecoder.Instance.Decode(input);
     }
     if (flag)
     {
         BitMaskStream stream2 = new BitMaskStream(input, 3);
         if (stream2.Read())
         {
             _r.idc_Config_r11 = IDC_Config_r11.PerDecoder.Instance.Decode(input);
         }
         if (stream2.Read())
         {
             _r.powerPrefIndicationConfig_r11 = PowerPrefIndicationConfig_r11.PerDecoder.Instance.Decode(input);
         }
         if (stream2.Read())
         {
             _r.obtainLocationConfig_r11 = ObtainLocationConfig_r11.PerDecoder.Instance.Decode(input);
         }
     }
     return _r;
 }
开发者ID:ouyh18,项目名称:LteTools,代码行数:28,代码来源:Other.cs



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

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

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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