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


C# BitArrayInputStream.skipUnreadedBits方法代码示例

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


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

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

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

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

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

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

示例6: Decode

            public SuccessfulOutcome Decode(BitArrayInputStream input)
            {
                SuccessfulOutcome outcome = new SuccessfulOutcome();
                outcome.InitDefaults();
                input.skipUnreadedBits();
                outcome.procedureCode = input.readBits(8);
                const int num4 = 2;
                outcome.criticality = (Criticality)input.readBits(num4);
                input.skipUnreadedBits();
                int nBits = 0;
                while (true)
                {
                    switch (input.readBit())
                    {
                        case 0:
                            nBits += input.readBits(7);
                            goto Label_00CF;

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

                                case 1:
                                    input.readBits(2);
                                    nBits += input.readBits(4) * 0x400;
                                    break;
                            }
                            break;
                    }
                }
                Label_00CF:
                long num3 = input.Position;
                try
                {
                    outcome.value = X2AP_ELEMENTARY_PROCEDURE.Switcher(outcome.procedureCode, "SuccessfulOutcome", input);
                    input.skipUnreadedBits();
                }
                catch (Exception)
                {
                    input.skipUnreadedBits();
                    input.Position = num3;
                    outcome.value = input.readOctetString(nBits);
                }
                if (input.Position != (num3 + nBits))
                {
                    input.Position = num3 + nBits;
                }
                return outcome;
            }
开发者ID:ouyh18,项目名称:LteTools,代码行数:52,代码来源:Outcome.cs

示例7: Decode

 public WarningAreaList Decode(BitArrayInputStream input)
 {
     int num4;
     WarningAreaList list = new WarningAreaList();
     list.InitDefaults();
     input.readBit();
     switch (input.readBits(2))
     {
         case 0:
             {
                 input.skipUnreadedBits();
                 list.cellIDList = new List<EUTRAN_CGI>();
                 num4 = 0x10;
                 int num6 = input.readBits(num4) + 1;
                 for (int i = 0; i < num6; i++)
                 {
                     EUTRAN_CGI item = EUTRAN_CGI.PerDecoder.Instance.Decode(input);
                     list.cellIDList.Add(item);
                 }
                 return list;
             }
         case 1:
             {
                 input.skipUnreadedBits();
                 list.trackingAreaListforWarning = new List<TAI>();
                 num4 = 0x10;
                 int num8 = input.readBits(num4) + 1;
                 for (int j = 0; j < num8; j++)
                 {
                     TAI tai = TAI.PerDecoder.Instance.Decode(input);
                     list.trackingAreaListforWarning.Add(tai);
                 }
                 return list;
             }
         case 2:
             {
                 input.skipUnreadedBits();
                 list.emergencyAreaIDList = new List<string>();
                 num4 = 0x10;
                 int num10 = input.readBits(num4) + 1;
                 for (int k = 0; k < num10; k++)
                 {
                     input.skipUnreadedBits();
                     string str = input.readOctetString(3);
                     list.emergencyAreaIDList.Add(str);
                 }
                 return list;
             }
     }
     throw new Exception(GetType().Name + ":NoChoice had been choose");
 }
开发者ID:ouyh18,项目名称:LteTools,代码行数:51,代码来源:Warning.cs

示例8: Decode

 public BroadcastCancelledAreaList Decode(BitArrayInputStream input)
 {
     int num4;
     BroadcastCancelledAreaList list = new BroadcastCancelledAreaList();
     list.InitDefaults();
     input.readBit();
     switch (input.readBits(2))
     {
         case 0:
             {
                 input.skipUnreadedBits();
                 list.cellID_Cancelled = new List<CellID_Cancelled_Item>();
                 num4 = 0x10;
                 int num6 = input.readBits(num4) + 1;
                 for (int i = 0; i < num6; i++)
                 {
                     CellID_Cancelled_Item item = CellID_Cancelled_Item.PerDecoder.Instance.Decode(input);
                     list.cellID_Cancelled.Add(item);
                 }
                 return list;
             }
         case 1:
             {
                 input.skipUnreadedBits();
                 list.tAI_Cancelled = new List<TAI_Cancelled_Item>();
                 num4 = 0x10;
                 int num8 = input.readBits(num4) + 1;
                 for (int j = 0; j < num8; j++)
                 {
                     TAI_Cancelled_Item item2 = TAI_Cancelled_Item.PerDecoder.Instance.Decode(input);
                     list.tAI_Cancelled.Add(item2);
                 }
                 return list;
             }
         case 2:
             {
                 input.skipUnreadedBits();
                 list.emergencyAreaID_Cancelled = new List<EmergencyAreaID_Cancelled_Item>();
                 num4 = 0x10;
                 int num10 = input.readBits(num4) + 1;
                 for (int k = 0; k < num10; k++)
                 {
                     EmergencyAreaID_Cancelled_Item item3 = EmergencyAreaID_Cancelled_Item.PerDecoder.Instance.Decode(input);
                     list.emergencyAreaID_Cancelled.Add(item3);
                 }
                 return list;
             }
     }
     throw new Exception(GetType().Name + ":NoChoice had been choose");
 }
开发者ID:ouyh18,项目名称:LteTools,代码行数:50,代码来源:Broadcast.cs

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

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

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

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

示例13: Decode

 public CriticalityDiagnostics Decode(BitArrayInputStream input)
 {
     int num4;
     CriticalityDiagnostics diagnostics = new CriticalityDiagnostics();
     diagnostics.InitDefaults();
     BitMaskStream stream = (input.readBit() != 0) ? new BitMaskStream(input, 5) : new BitMaskStream(input, 5);
     if (stream.Read())
     {
         input.skipUnreadedBits();
         diagnostics.procedureCode = input.readBits(8);
     }
     if (stream.Read())
     {
         num4 = 2;
         diagnostics.triggeringMessage = (TriggeringMessage)input.readBits(num4);
     }
     if (stream.Read())
     {
         num4 = 2;
         diagnostics.procedureCriticality = (Criticality)input.readBits(num4);
     }
     if (stream.Read())
     {
         input.skipUnreadedBits();
         diagnostics.iEsCriticalityDiagnostics = new List<CriticalityDiagnostics_IE_List_Element>();
         num4 = 8;
         int num5 = input.readBits(num4) + 1;
         for (int i = 0; i < num5; i++)
         {
             CriticalityDiagnostics_IE_List_Element item = CriticalityDiagnostics_IE_List_Element.PerDecoder.Instance.Decode(input);
             diagnostics.iEsCriticalityDiagnostics.Add(item);
         }
     }
     if (stream.Read())
     {
         input.skipUnreadedBits();
         diagnostics.iE_Extensions = new List<ProtocolExtensionField>();
         num4 = 0x10;
         int num7 = input.readBits(num4) + 1;
         for (int j = 0; j < num7; j++)
         {
             ProtocolExtensionField field = ProtocolExtensionField.PerDecoder.Instance.Decode(input);
             diagnostics.iE_Extensions.Add(field);
         }
     }
     return diagnostics;
 }
开发者ID:ouyh18,项目名称:LteTools,代码行数:47,代码来源:CriticalityDiagnostics.cs

示例14: 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 = X2AP_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,项目名称:LteTools,代码行数:55,代码来源:ProtocolIE.cs

示例15: Decode

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


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