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


C# BitArrayInputStream.readOctetString方法代码示例

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


在下文中一共展示了BitArrayInputStream.readOctetString方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: 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

示例2: 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

示例3: 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

示例4: 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

示例5: 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

示例6: Decode

 public TraceReference_r10 Decode(BitArrayInputStream input)
 {
     TraceReference_r10 _r = new TraceReference_r10();
     _r.InitDefaults();
     _r.plmn_Identity_r10 = PLMN_Identity.PerDecoder.Instance.Decode(input);
     _r.traceId_r10 = input.readOctetString(3);
     return _r;
 }
开发者ID:ouyh18,项目名称:LteTools,代码行数:8,代码来源:TraceReference.cs

示例7: Decode

 public TMGI_r9 Decode(BitArrayInputStream input)
 {
     TMGI_r9 _r = new TMGI_r9();
     _r.InitDefaults();
     _r.plmn_Id_r9 = plmn_Id_r9_Type.PerDecoder.Instance.Decode(input);
     _r.serviceId_r9 = input.readOctetString(3);
     return _r;
 }
开发者ID:ouyh18,项目名称:LteTools,代码行数:8,代码来源:TMGI.cs

示例8: Decode

 public Handover Decode(BitArrayInputStream input)
 {
     Handover handover = new Handover();
     handover.InitDefaults();
     BitMaskStream stream = new BitMaskStream(input, 2);
     int num2 = (input.readBit() == 0) ? 3 : 3;
     handover.targetRAT_Type = (targetRAT_Type_Enum)input.readBits(num2);
     int nBits = input.readBits(8);
     handover.targetRAT_MessageContainer = input.readOctetString(nBits);
     if (stream.Read())
     {
         handover.nas_SecurityParamFromEUTRA = input.readOctetString(1);
     }
     if (stream.Read())
     {
         handover.systemInformation = SI_OrPSI_GERAN.PerDecoder.Instance.Decode(input);
     }
     return handover;
 }
开发者ID:ouyh18,项目名称:LteTools,代码行数:19,代码来源:Handover.cs

示例9: Decode

 public LAI Decode(BitArrayInputStream input)
 {
     LAI lai = new LAI();
     lai.InitDefaults();
     BitMaskStream stream = (input.readBit() != 0) ? new BitMaskStream(input, 1) : new BitMaskStream(input, 1);
     input.skipUnreadedBits();
     lai.pLMNidentity = input.readOctetString(3);
     input.skipUnreadedBits();
     lai.lAC = input.readOctetString(2);
     if (stream.Read())
     {
         input.skipUnreadedBits();
         lai.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);
             lai.iE_Extensions.Add(item);
         }
     }
     return lai;
 }
开发者ID:ouyh18,项目名称:LteTools,代码行数:23,代码来源:LAC.cs

示例10: Decode

 public CellInfoGERAN_r9 Decode(BitArrayInputStream input)
 {
     CellInfoGERAN_r9 _r = new CellInfoGERAN_r9();
     _r.InitDefaults();
     _r.physCellId_r9 = PhysCellIdGERAN.PerDecoder.Instance.Decode(input);
     _r.carrierFreq_r9 = CarrierFreqGERAN.PerDecoder.Instance.Decode(input);
     _r.systemInformation_r9 = new List<string>();
     const int nBits = 4;
     int num3 = input.readBits(nBits) + 1;
     for (int i = 0; i < num3; i++)
     {
         int num = input.readBits(5);
         string item = input.readOctetString(num + 1);
         _r.systemInformation_r9.Add(item);
     }
     return _r;
 }
开发者ID:ouyh18,项目名称:LteTools,代码行数:17,代码来源:CellInfo.cs

示例11: Decode

 public MBMSCountingRequest_r10 Decode(BitArrayInputStream input)
 {
     MBMSCountingRequest_r10 _r = new MBMSCountingRequest_r10();
     _r.InitDefaults();
     BitMaskStream stream = new BitMaskStream(input, 2);
     _r.countingRequestList_r10 = new List<CountingRequestInfo_r10>();
     const int num2 = 4;
     int num3 = input.readBits(num2) + 1;
     for (int i = 0; i < num3; i++)
     {
         CountingRequestInfo_r10 item = CountingRequestInfo_r10.PerDecoder.Instance.Decode(input);
         _r.countingRequestList_r10.Add(item);
     }
     if (stream.Read())
     {
         int nBits = input.readBits(8);
         _r.lateNonCriticalExtension = input.readOctetString(nBits);
     }
     if (stream.Read())
     {
         _r.nonCriticalExtension = nonCriticalExtension_Type.PerDecoder.Instance.Decode(input);
     }
     return _r;
 }
开发者ID:ouyh18,项目名称:LteTools,代码行数:24,代码来源:MBMS.cs

示例12: Decode

 public UEAssistanceInformation_r11_IEs Decode(BitArrayInputStream input)
 {
     UEAssistanceInformation_r11_IEs es = new UEAssistanceInformation_r11_IEs();
     es.InitDefaults();
     BitMaskStream stream = new BitMaskStream(input, 3);
     if (stream.Read())
     {
         const int num2 = 1;
         es.powerPrefIndication_r11 = (powerPrefIndication_r11_Enum)input.readBits(num2);
     }
     if (stream.Read())
     {
         int nBits = input.readBits(8);
         es.lateNonCriticalExtension = input.readOctetString(nBits);
     }
     if (stream.Read())
     {
         es.nonCriticalExtension = nonCriticalExtension_Type.PerDecoder.Instance.Decode(input);
     }
     return es;
 }
开发者ID:ouyh18,项目名称:LteTools,代码行数:21,代码来源:UEAssistanceInformation.cs

示例13: Decode

 public ECGI Decode(BitArrayInputStream input)
 {
     ECGI ecgi = new ECGI();
     ecgi.InitDefaults();
     BitMaskStream stream = (input.readBit() != 0) ? new BitMaskStream(input, 1) : new BitMaskStream(input, 1);
     input.skipUnreadedBits();
     ecgi.pLMN_Identity = input.readOctetString(3);
     ecgi.eUTRANcellIdentifier = input.readBitString(0x1c);
     if (stream.Read())
     {
         input.skipUnreadedBits();
         ecgi.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);
             ecgi.iE_Extensions.Add(item);
         }
     }
     return ecgi;
 }
开发者ID:ouyh18,项目名称:LteTools,代码行数:22,代码来源:CGI.cs

示例14: Decode

 public UE_EUTRA_Capability_v9h0_IEs Decode(BitArrayInputStream input)
 {
     UE_EUTRA_Capability_v9h0_IEs es = new UE_EUTRA_Capability_v9h0_IEs();
     es.InitDefaults();
     BitMaskStream stream = new BitMaskStream(input, 3);
     if (stream.Read())
     {
         es.interRAT_ParametersUTRA_v9h0 = IRAT_ParametersUTRA_v9h0.PerDecoder.Instance.Decode(input);
     }
     if (stream.Read())
     {
         int nBits = input.readBits(8);
         es.lateNonCriticalExtension = input.readOctetString(nBits);
     }
     if (stream.Read())
     {
         es.nonCriticalExtension = UE_EUTRA_Capability_v10c0_IEs.PerDecoder.Instance.Decode(input);
     }
     return es;
 }
开发者ID:ouyh18,项目名称:LteTools,代码行数:20,代码来源:UE_EUTRA_Capability.cs

示例15: Decode

 public CounterCheck_v8a0_IEs Decode(BitArrayInputStream input)
 {
     CounterCheck_v8a0_IEs es = new CounterCheck_v8a0_IEs();
     es.InitDefaults();
     BitMaskStream stream = new BitMaskStream(input, 2);
     if (stream.Read())
     {
         int nBits = input.readBits(8);
         es.lateNonCriticalExtension = input.readOctetString(nBits);
     }
     if (stream.Read())
     {
         es.nonCriticalExtension = nonCriticalExtension_Type.PerDecoder.Instance.Decode(input);
     }
     return es;
 }
开发者ID:ouyh18,项目名称:LteTools,代码行数:16,代码来源:CounterCheck.cs


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