public SONInformationReply Decode(BitArrayInputStream input) { SONInformationReply reply = new SONInformationReply(); reply.InitDefaults(); BitMaskStream stream = (input.ReadBit() != 0) ? new BitMaskStream(input, 2) : new BitMaskStream(input, 2); if (stream.Read()) { reply.x2TNLConfigurationInfo = X2TNLConfigurationInfo.PerDecoder.Instance.Decode(input); } if (stream.Read()) { input.skipUnreadedBits(); reply.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); reply.iE_Extensions.Add(item); } } return(reply); }
public ServedCellsToModify_Item Decode(BitArrayInputStream input) { int num4; ServedCellsToModify_Item item = new ServedCellsToModify_Item(); item.InitDefaults(); BitMaskStream stream = (input.readBit() != 0) ? new BitMaskStream(input, 2) : new BitMaskStream(input, 2); item.old_ecgi = ECGI.PerDecoder.Instance.Decode(input); item.servedCellInfo = ServedCell_Information.PerDecoder.Instance.Decode(input); if (stream.Read()) { item.neighbour_Info = new List <Neighbour_Information_Element>(); num4 = 10; int num5 = input.readBits(num4); for (int i = 0; i < num5; i++) { Neighbour_Information_Element element = Neighbour_Information_Element.PerDecoder.Instance.Decode(input); item.neighbour_Info.Add(element); } } if (stream.Read()) { input.skipUnreadedBits(); item.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); item.iE_Extensions.Add(field); } } return(item); }
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); }
public MBSFN_Subframe_Info Decode(BitArrayInputStream input) { MBSFN_Subframe_Info info = new MBSFN_Subframe_Info(); info.InitDefaults(); BitMaskStream stream = (input.ReadBit() != 0) ? new BitMaskStream(input, 1) : new BitMaskStream(input, 1); int nBits = (input.ReadBit() == 0) ? 3 : 3; info.radioframeAllocationPeriod = (RadioframeAllocationPeriod)input.ReadBits(nBits); input.ReadBit(); info.radioframeAllocationOffset = input.ReadBits(3); info.subframeAllocation = SubframeAllocation.PerDecoder.Instance.Decode(input); if (stream.Read()) { input.skipUnreadedBits(); info.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); info.iE_Extensions.Add(item); } } return(info); }
public CompositeAvailableCapacity Decode(BitArrayInputStream input) { CompositeAvailableCapacity capacity = new CompositeAvailableCapacity(); capacity.InitDefaults(); BitMaskStream stream = (input.readBit() != 0) ? new BitMaskStream(input, 2) : new BitMaskStream(input, 2); if (stream.Read()) { input.readBit(); capacity.cellCapacityClassValue = input.readBits(7) + 1; } capacity.capacityValue = input.readBits(7); if (stream.Read()) { input.skipUnreadedBits(); capacity.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); capacity.iE_Extensions.Add(item); } } return(capacity); }
public SpecialSubframe_Info Decode(BitArrayInputStream input) { SpecialSubframe_Info info = new SpecialSubframe_Info(); info.InitDefaults(); BitMaskStream stream = (input.ReadBit() != 0) ? new BitMaskStream(input, 1) : new BitMaskStream(input, 1); int nBits = (input.ReadBit() == 0) ? 4 : 4; info.specialSubframePatterns = (SpecialSubframePatterns)input.ReadBits(nBits); nBits = 1; info.cyclicPrefixDL = (CyclicPrefixDL)input.ReadBits(nBits); nBits = 1; info.cyclicPrefixUL = (CyclicPrefixUL)input.ReadBits(nBits); if (stream.Read()) { input.skipUnreadedBits(); info.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); info.iE_Extensions.Add(item); } } return(info); }
public TimeSynchronizationInfo Decode(BitArrayInputStream input) { TimeSynchronizationInfo info = new TimeSynchronizationInfo(); info.InitDefaults(); BitMaskStream stream = (input.ReadBit() != 0) ? new BitMaskStream(input, 1) : new BitMaskStream(input, 1); input.ReadBit(); info.stratumLevel = input.ReadBits(2); int nBits = 1; info.synchronizationStatus = (SynchronizationStatus)input.ReadBits(nBits); if (stream.Read()) { input.skipUnreadedBits(); info.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); info.iE_Extensions.Add(item); } } return(info); }
public E_RABInformationListItem Decode(BitArrayInputStream input) { int num4; E_RABInformationListItem item = new E_RABInformationListItem(); item.InitDefaults(); BitMaskStream stream = (input.ReadBit() != 0) ? new BitMaskStream(input, 2) : new BitMaskStream(input, 2); input.ReadBit(); item.e_RAB_ID = input.ReadBits(4); if (stream.Read()) { num4 = 1; item.dL_Forwarding = (DL_Forwarding)input.ReadBits(num4); } 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); }
public HWLoadIndicator Decode(BitArrayInputStream input) { HWLoadIndicator indicator = new HWLoadIndicator(); indicator.InitDefaults(); BitMaskStream stream = (input.readBit() != 0) ? new BitMaskStream(input, 1) : new BitMaskStream(input, 1); int nBits = (input.readBit() == 0) ? 2 : 2; indicator.dLHWLoadIndicator = (LoadIndicator)input.readBits(nBits); nBits = (input.readBit() == 0) ? 2 : 2; indicator.uLHWLoadIndicator = (LoadIndicator)input.readBits(nBits); if (stream.Read()) { input.skipUnreadedBits(); indicator.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); indicator.iE_Extensions.Add(item); } } return(indicator); }
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); }
public RadioResourceStatus Decode(BitArrayInputStream input) { RadioResourceStatus status = new RadioResourceStatus(); status.InitDefaults(); BitMaskStream stream = (input.readBit() != 0) ? new BitMaskStream(input, 1) : new BitMaskStream(input, 1); status.dL_GBR_PRB_usage = input.readBits(7); status.uL_GBR_PRB_usage = input.readBits(7); status.dL_non_GBR_PRB_usage = input.readBits(7); status.uL_non_GBR_PRB_usage = input.readBits(7); status.dL_Total_PRB_usage = input.readBits(7); status.uL_Total_PRB_usage = input.readBits(7); if (stream.Read()) { input.skipUnreadedBits(); status.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); status.iE_Extensions.Add(item); } } return(status); }
public RequestType Decode(BitArrayInputStream input) { RequestType type = new RequestType(); type.InitDefaults(); BitMaskStream stream = (input.ReadBit() != 0) ? new BitMaskStream(input, 1) : new BitMaskStream(input, 1); int nBits = (input.ReadBit() == 0) ? 2 : 2; type.eventType = (EventType)input.ReadBits(nBits); nBits = 1; type.reportArea = (ReportArea)input.ReadBits(nBits); if (stream.Read()) { input.skipUnreadedBits(); type.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); type.iE_Extensions.Add(item); } } return(type); }
public E_RABs_ToBeSetup_Item Decode(BitArrayInputStream input) { int num4; E_RABs_ToBeSetup_Item item = new E_RABs_ToBeSetup_Item(); item.InitDefaults(); BitMaskStream stream = (input.readBit() != 0) ? new BitMaskStream(input, 2) : new BitMaskStream(input, 2); input.readBit(); item.e_RAB_ID = input.readBits(4); item.e_RAB_Level_QoS_Parameters = E_RAB_Level_QoS_Parameters.PerDecoder.Instance.Decode(input); if (stream.Read()) { num4 = 1; item.dL_Forwarding = (DL_Forwarding)input.readBits(num4); } item.uL_GTPtunnelEndpoint = GTPtunnelEndpoint.PerDecoder.Instance.Decode(input); 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); }
public AllocationAndRetentionPriority Decode(BitArrayInputStream input) { AllocationAndRetentionPriority priority = new AllocationAndRetentionPriority(); priority.InitDefaults(); BitMaskStream stream = (input.readBit() != 0) ? new BitMaskStream(input, 1) : new BitMaskStream(input, 1); priority.priorityLevel = input.readBits(4); int nBits = 1; priority.pre_emptionCapability = (Pre_emptionCapability)input.readBits(nBits); nBits = 1; priority.pre_emptionVulnerability = (Pre_emptionVulnerability)input.readBits(nBits); if (stream.Read()) { input.skipUnreadedBits(); priority.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); priority.iE_Extensions.Add(item); } } return(priority); }
public CellBasedMDT Decode(BitArrayInputStream input) { CellBasedMDT dmdt = new CellBasedMDT(); dmdt.InitDefaults(); BitMaskStream stream = (input.readBit() != 0) ? new BitMaskStream(input, 1) : new BitMaskStream(input, 1); dmdt.cellIdListforMDT = new List <ECGI>(); int nBits = 5; int num5 = input.readBits(nBits) + 1; for (int i = 0; i < num5; i++) { ECGI item = ECGI.PerDecoder.Instance.Decode(input); dmdt.cellIdListforMDT.Add(item); } if (stream.Read()) { input.skipUnreadedBits(); dmdt.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); dmdt.iE_Extensions.Add(field); } } return(dmdt); }
public ResetType Decode(BitArrayInputStream input) { int num4; ResetType type = new ResetType(); type.InitDefaults(); input.ReadBit(); switch (input.ReadBits(1)) { case 0: num4 = 1; type.s1_Interface = (ResetAll)input.ReadBits(num4); return(type); case 1: { input.skipUnreadedBits(); type.partOfS1_Interface = new List <ProtocolIE_Field>(); num4 = 8; int num6 = input.ReadBits(num4) + 1; for (int i = 0; i < num6; i++) { ProtocolIE_Field item = ProtocolIE_Field.PerDecoder.Instance.Decode(input); type.partOfS1_Interface.Add(item); } return(type); } } throw new Exception(GetType().Name + ":NoChoice had been choose"); }
public LocationReportingInformation Decode(BitArrayInputStream input) { LocationReportingInformation information = new LocationReportingInformation(); information.InitDefaults(); BitMaskStream stream = (input.readBit() != 0) ? new BitMaskStream(input, 1) : new BitMaskStream(input, 1); int nBits = 1; information.eventType = (EventType)input.readBits(nBits); nBits = 1; information.reportArea = (ReportArea)input.readBits(nBits); 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); }
public string Decode(BitArrayInputStream input) { int num2 = input.readBits(8); input.skipUnreadedBits(); return(input.readOctetString(num2 + 1)); }
public long Decode(BitArrayInputStream input) { int num2 = input.readBits(2) + 1; input.skipUnreadedBits(); return(input.readBits(num2 * 8) + 0x1000); }
public CompleteFailureCauseInformation_Item Decode(BitArrayInputStream input) { CompleteFailureCauseInformation_Item item = new CompleteFailureCauseInformation_Item(); item.InitDefaults(); BitMaskStream stream = (input.readBit() != 0) ? new BitMaskStream(input, 1) : new BitMaskStream(input, 1); item.cell_ID = ECGI.PerDecoder.Instance.Decode(input); item.measurementFailureCause_List = new List <ProtocolIE_Field>(); int nBits = 5; int num5 = input.readBits(nBits) + 1; for (int i = 0; i < num5; i++) { ProtocolIE_Field field = ProtocolIE_Field.PerDecoder.Instance.Decode(input); item.measurementFailureCause_List.Add(field); } 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 field2 = ProtocolExtensionField.PerDecoder.Instance.Decode(input); item.iE_Extensions.Add(field2); } } return(item); }
public long Decode(BitArrayInputStream input) { int num2 = input.ReadBits(1) + 1; input.skipUnreadedBits(); return(input.ReadBits(num2 * 8)); }
public UESecurityCapabilities Decode(BitArrayInputStream input) { UESecurityCapabilities capabilities = new UESecurityCapabilities(); capabilities.InitDefaults(); BitMaskStream stream = (input.ReadBit() != 0) ? new BitMaskStream(input, 1) : new BitMaskStream(input, 1); input.ReadBit(); capabilities.encryptionAlgorithms = input.ReadBitString(0x10); input.ReadBit(); capabilities.integrityProtectionAlgorithms = input.ReadBitString(0x10); if (stream.Read()) { input.skipUnreadedBits(); capabilities.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); capabilities.iE_Extensions.Add(item); } } return(capabilities); }
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)); }
public static LAI Decode(BitArrayInputStream input) { var lai = new LAI(); lai.InitDefaults(); var 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()) return lai; input.skipUnreadedBits(); lai.iE_Extensions = new List<ProtocolExtensionField>(); const int nBits = 0x10; var num5 = input.ReadBits(nBits) + 1; for (var i = 0; i < num5; i++) { var item = ProtocolExtensionField.PerDecoder.Instance.Decode(input); lai.iE_Extensions.Add(item); } return lai; }
public LastVisitedCell_Item Decode(BitArrayInputStream input) { int nBits; LastVisitedCell_Item item = new LastVisitedCell_Item(); item.InitDefaults(); input.readBit(); switch (input.readBits(2)) { case 0: item.e_UTRAN_Cell = LastVisitedEUTRANCellInformation.PerDecoder.Instance.Decode(input); return(item); case 1: input.skipUnreadedBits(); nBits = 0; break; case 2: item.gERAN_Cell = LastVisitedGERANCellInformation.PerDecoder.Instance.Decode(input); return(item); default: throw new Exception(GetType().Name + ":NoChoice had been choose"); } while (true) { switch (input.readBit()) { case 0: nBits += input.readBits(7); goto Label_00F2; case 1: switch (input.readBit()) { case 0: nBits += input.readBits(14); goto Label_00F2; case 1: input.readBits(2); nBits += input.readBits(4) * 0x400; break; } break; } } Label_00F2: item.uTRAN_Cell = input.readOctetString(nBits); return(item); }
protected override void ProcessConfig(Global_ENB_ID config, BitArrayInputStream input) { input.ReadBit(); var stream = new BitMaskStream(input, 1); input.skipUnreadedBits(); config.pLMNidentity = input.readOctetString(3); config.eNB_ID = ENB_ID.PerDecoder.Instance.Decode(input); if (!stream.Read()) { return; } input.skipUnreadedBits(); config.iE_Extensions = new List <ProtocolExtensionField>(); var num5 = input.ReadBits(0x10) + 1; for (var i = 0; i < num5; i++) { var item = ProtocolExtensionField.PerDecoder.Instance.Decode(input); config.iE_Extensions.Add(item); } }
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); }
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); }
public TargetRNC_ID Decode(BitArrayInputStream input) { int num4; TargetRNC_ID trnc_id = new TargetRNC_ID(); trnc_id.InitDefaults(); BitMaskStream stream = (input.readBit() != 0) ? new BitMaskStream(input, 3) : new BitMaskStream(input, 3); trnc_id.lAI = LAI.PerDecoder.Decode(input); if (stream.Read()) { input.skipUnreadedBits(); trnc_id.rAC = input.readOctetString(1); } input.skipUnreadedBits(); trnc_id.rNC_ID = input.readBits(0x10); if (stream.Read()) { num4 = input.readBits(1) + 1; input.skipUnreadedBits(); trnc_id.extendedRNC_ID = input.readBits(num4 * 8) + 0x1000; } if (stream.Read()) { input.skipUnreadedBits(); trnc_id.iE_Extensions = new List <ProtocolExtensionField>(); num4 = 0x10; int num5 = input.readBits(num4) + 1; for (int i = 0; i < num5; i++) { ProtocolExtensionField item = ProtocolExtensionField.PerDecoder.Instance.Decode(input); trnc_id.iE_Extensions.Add(item); } } return(trnc_id); }
public static List <ProtocolIE_Field> Value(BitArrayInputStream input) { input.skipUnreadedBits(); List <ProtocolIE_Field> list = new List <ProtocolIE_Field>(); int nBits = 8; int num2 = input.ReadBits(nBits) + 1; for (int i = 0; i < num2; i++) { ProtocolIE_Field item = ProtocolIE_Field.PerDecoder.Instance.Decode(input); list.Add(item); } return(list); }