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


C# BitArrayInputStream.readOctetString方法代码示例

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


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

示例1: Decode

 public ForbiddenLAs_Item Decode(BitArrayInputStream input)
 {
     ForbiddenLAs_Item item = new ForbiddenLAs_Item();
     item.InitDefaults();
     BitMaskStream stream = (input.ReadBit() != 0) ? new BitMaskStream(input, 1) : new BitMaskStream(input, 1);
     input.skipUnreadedBits();
     item.pLMN_Identity = input.readOctetString(3);
     item.forbiddenLACs = new List<string>();
     int nBits = 12;
     int num5 = input.ReadBits(nBits) + 1;
     for (int i = 0; i < num5; i++)
     {
         input.skipUnreadedBits();
         string str = input.readOctetString(2);
         item.forbiddenLACs.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,项目名称:LtePlatform,代码行数:30,代码来源:Forbidden.cs

示例2: Decode

                public locationCoordinates_r10_Type Decode(BitArrayInputStream input)
                {
                    int nBits;
                    locationCoordinates_r10_Type type = new locationCoordinates_r10_Type();
                    type.InitDefaults();
                    bool flag = input.ReadBit() != 0;
                    switch (input.ReadBits(3))
                    {
                        case 0:
                            nBits = input.ReadBits(8);
                            type.ellipsoid_Point_r10 = input.readOctetString(nBits);
                            return type;

                        case 1:
                            nBits = input.ReadBits(8);
                            type.ellipsoidPointWithAltitude_r10 = input.readOctetString(nBits);
                            return type;

                        case 2:
                            if (flag)
                            {
                                nBits = input.ReadBits(8);
                                type.ellipsoidPointWithUncertaintyCircle_r11 = input.readOctetString(nBits);
                            }
                            return type;

                        case 3:
                            if (flag)
                            {
                                nBits = input.ReadBits(8);
                                type.ellipsoidPointWithUncertaintyEllipse_r11 = input.readOctetString(nBits);
                            }
                            return type;

                        case 4:
                            if (flag)
                            {
                                nBits = input.ReadBits(8);
                                type.ellipsoidPointWithAltitudeAndUncertaintyEllipsoid_r11 = input.readOctetString(nBits);
                            }
                            return type;

                        case 5:
                            if (flag)
                            {
                                nBits = input.ReadBits(8);
                                type.ellipsoidArc_r11 = input.readOctetString(nBits);
                            }
                            return type;

                        case 6:
                            if (flag)
                            {
                                nBits = input.ReadBits(8);
                                type.polygon_r11 = input.readOctetString(nBits);
                            }
                            return type;
                    }
                    throw new Exception(GetType().Name + ":NoChoice had been choose");
                }
开发者ID:ouyh18,项目名称:LtePlatform,代码行数:60,代码来源:LocationInfo.cs

示例3: Decode

 public ServedCell_Information Decode(BitArrayInputStream input)
 {
     ServedCell_Information information = new ServedCell_Information();
     information.InitDefaults();
     BitMaskStream stream = (input.ReadBit() != 0) ? new BitMaskStream(input, 1) : new BitMaskStream(input, 1);
     input.ReadBit();
     input.skipUnreadedBits();
     information.pCI = input.ReadBits(0x10);
     information.cellId = ECGI.PerDecoder.Instance.Decode(input);
     input.skipUnreadedBits();
     information.tAC = input.readOctetString(2);
     information.broadcastPLMNs = new List<string>();
     int nBits = 3;
     int num5 = input.ReadBits(nBits) + 1;
     for (int i = 0; i < num5; i++)
     {
         input.skipUnreadedBits();
         string item = input.readOctetString(3);
         information.broadcastPLMNs.Add(item);
     }
     information.eUTRA_Mode_Info = EUTRA_Mode_Info.PerDecoder.Instance.Decode(input);
     if (stream.Read())
     {
         input.skipUnreadedBits();
         information.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);
             information.iE_Extensions.Add(field);
         }
     }
     return information;
 }
开发者ID:ouyh18,项目名称:LtePlatform,代码行数:35,代码来源:ServedCell.cs

示例4: Decode

 public E_RABAdmittedItem Decode(BitArrayInputStream input)
 {
     E_RABAdmittedItem item = new E_RABAdmittedItem();
     item.InitDefaults();
     BitMaskStream stream = (input.ReadBit() != 0) ? new BitMaskStream(input, 5) : new BitMaskStream(input, 5);
     input.ReadBit();
     item.e_RAB_ID = input.ReadBits(4);
     input.ReadBit();
     int num = input.ReadBits(8);
     input.skipUnreadedBits();
     item.transportLayerAddress = input.ReadBitString(num + 1);
     input.skipUnreadedBits();
     item.gTP_TEID = input.readOctetString(4);
     if (stream.Read())
     {
         input.ReadBit();
         num = input.ReadBits(8);
         input.skipUnreadedBits();
         item.dL_transportLayerAddress = input.ReadBitString(num + 1);
     }
     if (stream.Read())
     {
         input.skipUnreadedBits();
         item.dL_gTP_TEID = input.readOctetString(4);
     }
     if (stream.Read())
     {
         input.ReadBit();
         num = input.ReadBits(8);
         input.skipUnreadedBits();
         item.uL_TransportLayerAddress = input.ReadBitString(num + 1);
     }
     if (stream.Read())
     {
         input.skipUnreadedBits();
         item.uL_GTP_TEID = input.readOctetString(4);
     }
     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,项目名称:LtePlatform,代码行数:51,代码来源:E_RAB_ID.cs

示例5: Decode

 public ServedGUMMEIsItem Decode(BitArrayInputStream input)
 {
     ServedGUMMEIsItem item = new ServedGUMMEIsItem();
     item.InitDefaults();
     BitMaskStream stream = (input.ReadBit() != 0) ? new BitMaskStream(input, 1) : new BitMaskStream(input, 1);
     item.servedPLMNs = new List<string>();
     int nBits = 5;
     int num5 = input.ReadBits(nBits) + 1;
     for (int i = 0; i < num5; i++)
     {
         input.skipUnreadedBits();
         string str = input.readOctetString(3);
         item.servedPLMNs.Add(str);
     }
     input.skipUnreadedBits();
     item.servedGroupIDs = new List<string>();
     nBits = 0x10;
     int num7 = input.ReadBits(nBits) + 1;
     for (int j = 0; j < num7; j++)
     {
         input.skipUnreadedBits();
         string str2 = input.readOctetString(2);
         item.servedGroupIDs.Add(str2);
     }
     input.skipUnreadedBits();
     item.servedMMECs = new List<string>();
     nBits = 8;
     int num9 = input.ReadBits(nBits) + 1;
     for (int k = 0; k < num9; k++)
     {
         input.skipUnreadedBits();
         string str3 = input.readOctetString(1);
         item.servedMMECs.Add(str3);
     }
     if (stream.Read())
     {
         input.skipUnreadedBits();
         item.iE_Extensions = new List<ProtocolExtensionField>();
         nBits = 0x10;
         int num11 = input.ReadBits(nBits) + 1;
         for (int m = 0; m < num11; m++)
         {
             ProtocolExtensionField field = ProtocolExtensionField.PerDecoder.Instance.Decode(input);
             item.iE_Extensions.Add(field);
         }
     }
     return item;
 }
开发者ID:ouyh18,项目名称:LtePlatform,代码行数:48,代码来源:Served.cs

示例6: Decode

 public TraceActivation Decode(BitArrayInputStream input)
 {
     TraceActivation activation = new TraceActivation();
     activation.InitDefaults();
     BitMaskStream stream = (input.ReadBit() != 0) ? new BitMaskStream(input, 1) : new BitMaskStream(input, 1);
     input.skipUnreadedBits();
     activation.e_UTRAN_Trace_ID = input.readOctetString(8);
     activation.interfacesToTrace = input.ReadBitString(8);
     int nBits = (input.ReadBit() == 0) ? 3 : 3;
     activation.traceDepth = (TraceDepth)input.ReadBits(nBits);
     input.ReadBit();
     int num = input.ReadBits(8);
     input.skipUnreadedBits();
     activation.traceCollectionEntityIPAddress = input.ReadBitString(num + 1);
     if (stream.Read())
     {
         input.skipUnreadedBits();
         activation.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);
             activation.iE_Extensions.Add(item);
         }
     }
     return activation;
 }
开发者ID:ouyh18,项目名称:LtePlatform,代码行数:28,代码来源:Trace.cs

示例7: 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,项目名称:LtePlatform,代码行数:30,代码来源:Cdma2000.cs

示例8: 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,项目名称:LtePlatform,代码行数:27,代码来源:E_RABSetup.cs

示例9: Decode

 public EmergencyAreaID_Broadcast_Item Decode(BitArrayInputStream input)
 {
     EmergencyAreaID_Broadcast_Item item = new EmergencyAreaID_Broadcast_Item();
     item.InitDefaults();
     BitMaskStream stream = (input.ReadBit() != 0) ? new BitMaskStream(input, 1) : new BitMaskStream(input, 1);
     input.skipUnreadedBits();
     item.emergencyAreaID = input.readOctetString(3);
     input.skipUnreadedBits();
     item.completedCellinEAI = new List<CompletedCellinEAI_Item>();
     int nBits = 0x10;
     int num5 = input.ReadBits(nBits) + 1;
     for (int i = 0; i < num5; i++)
     {
         CompletedCellinEAI_Item item2 = CompletedCellinEAI_Item.PerDecoder.Instance.Decode(input);
         item.completedCellinEAI.Add(item2);
     }
     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,项目名称:LtePlatform,代码行数:30,代码来源:EmergencyAreaID.cs

示例10: Decode

 public SystemInformationBlockType7 Decode(BitArrayInputStream input)
 {
     var type = new SystemInformationBlockType7();
     type.InitDefaults();
     var flag = false;
     flag = input.ReadBit() != 0;
     var stream = flag ? new BitMaskStream(input, 3) : new BitMaskStream(input, 2);
     type.t_ReselectionGERAN = input.ReadBits(3);
     if (stream.Read())
     {
         type.t_ReselectionGERAN_SF = SpeedStateScaleFactors.PerDecoder.Instance.Decode(input);
     }
     if (stream.Read())
     {
         type.carrierFreqsInfoList = new List<CarrierFreqsInfoGERAN>();
         var num2 = 4;
         var num3 = input.ReadBits(num2) + 1;
         for (var i = 0; i < num3; i++)
         {
             var item = CarrierFreqsInfoGERAN.PerDecoder.Instance.Decode(input);
             type.carrierFreqsInfoList.Add(item);
         }
     }
     if (flag && stream.Read())
     {
         var nBits = input.ReadBits(8);
         type.lateNonCriticalExtension = input.readOctetString(nBits);
     }
     return type;
 }
开发者ID:ouyh18,项目名称:LtePlatform,代码行数:30,代码来源:SystemInformationBlockType7.cs

示例11: 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,项目名称:LtePlatform,代码行数:8,代码来源:TMGI.cs

示例12: 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,项目名称:LtePlatform,代码行数:8,代码来源:TraceReference.cs

示例13: Decode

 public SystemInformationBlockType9 Decode(BitArrayInputStream input)
 {
     int nBits;
     var type = new SystemInformationBlockType9();
     type.InitDefaults();
     var flag = input.ReadBit() != 0;
     var stream = flag ? new BitMaskStream(input, 2) : new BitMaskStream(input, 1);
     if (stream.Read())
     {
         nBits = input.ReadBits(6);
         type.hnb_Name = input.readOctetString(nBits + 1);
     }
     if (flag && stream.Read())
     {
         nBits = input.ReadBits(8);
         type.lateNonCriticalExtension = input.readOctetString(nBits);
     }
     return type;
 }
开发者ID:ouyh18,项目名称:LtePlatform,代码行数:19,代码来源:SystemInformationBlockType9.cs

示例14: 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,项目名称:LtePlatform,代码行数:19,代码来源:Handover.cs

示例15: Decode

            public ProtocolExtensionField Decode(BitArrayInputStream input)
            {
                int nBits = 0;
                long num3 = 0L;
                ProtocolExtensionField field = new ProtocolExtensionField();
                field.InitDefaults();
                int num4 = input.ReadBits(1) + 1;
                input.skipUnreadedBits();
                field.id = input.ReadBits(num4 * 8);
                num4 = 2;
                field.criticality = (Criticality)input.ReadBits(num4);
                input.skipUnreadedBits();
                nBits = 0;
                while (true)
                {
                    switch (input.ReadBit())
                    {
                        case 0:
                            nBits += input.ReadBits(7);
                            goto Label_00DD;

                        case 1:
                            switch (input.ReadBit())
                            {
                                case 0:
                                    nBits += input.ReadBits(14);
                                    goto Label_00DD;

                                case 1:
                                    input.ReadBits(2);
                                    nBits += input.ReadBits(4) * 0x400;
                                    break;
                            }
                            break;
                    }
                }
            Label_00DD:
                num3 = input.Position;
                try
                {
                    field.extensionValue = S1AP_PROTOCOL_EXTENSION.Switcher(field.id, "Extension", input);
                    input.skipUnreadedBits();
                }
                catch (Exception)
                {
                    input.skipUnreadedBits();
                    input.Position = num3;
                    field.extensionValue = input.readOctetString(nBits);
                }
                if (input.Position != (num3 + nBits))
                {
                    input.Position = num3 + nBits;
                }
                return field;
            }
开发者ID:ouyh18,项目名称:LtePlatform,代码行数:55,代码来源:ProtocolExtension.cs


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