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); }
public SystemInformationBlockType11 Decode(BitArrayInputStream input) { var type = new SystemInformationBlockType11(); type.InitDefaults(); var flag = input.ReadBit() != 0; var stream = flag ? new BitMaskStream(input, 2) : new BitMaskStream(input, 1); type.messageIdentifier = input.ReadBitString(0x10); type.serialNumber = input.ReadBitString(0x10); const int num2 = 1; type.warningMessageSegmentType = (warningMessageSegmentType_Enum)input.ReadBits(num2); type.warningMessageSegmentNumber = input.ReadBits(6); var nBits = input.ReadBits(8); type.warningMessageSegment = input.readOctetString(nBits); if (stream.Read()) { type.dataCodingScheme = input.readOctetString(1); } if (flag && stream.Read()) { nBits = input.ReadBits(8); type.lateNonCriticalExtension = input.readOctetString(nBits); } return(type); }
public S_TMSI Decode(BitArrayInputStream input) { S_TMSI s_tmsi = new S_TMSI(); s_tmsi.InitDefaults(); BitMaskStream stream = (input.ReadBit() != 0) ? new BitMaskStream(input, 1) : new BitMaskStream(input, 1); input.skipUnreadedBits(); s_tmsi.mMEC = input.readOctetString(1); input.skipUnreadedBits(); s_tmsi.m_TMSI = input.readOctetString(4); if (stream.Read()) { input.skipUnreadedBits(); s_tmsi.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); s_tmsi.iE_Extensions.Add(item); } } return(s_tmsi); }
public TAI Decode(BitArrayInputStream input) { TAI tai = new TAI(); tai.InitDefaults(); BitMaskStream stream = (input.ReadBit() != 0) ? new BitMaskStream(input, 1) : new BitMaskStream(input, 1); input.skipUnreadedBits(); tai.pLMNidentity = input.readOctetString(3); input.skipUnreadedBits(); tai.tAC = input.readOctetString(2); if (stream.Read()) { input.skipUnreadedBits(); tai.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); tai.iE_Extensions.Add(item); } } return(tai); }
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); }
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 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); }
public SystemInformationBlockType12_r9 Decode(BitArrayInputStream input) { var _r = new SystemInformationBlockType12_r9(); _r.InitDefaults(); var stream = (input.ReadBit() != 0) ? new BitMaskStream(input, 2) : new BitMaskStream(input, 2); _r.messageIdentifier_r9 = input.ReadBitString(0x10); _r.serialNumber_r9 = input.ReadBitString(0x10); const int num2 = 1; _r.warningMessageSegmentType_r9 = (warningMessageSegmentType_r9_Enum)input.ReadBits(num2); _r.warningMessageSegmentNumber_r9 = input.ReadBits(6); var nBits = input.ReadBits(8); _r.warningMessageSegment_r9 = input.readOctetString(nBits); if (stream.Read()) { _r.dataCodingScheme_r9 = input.readOctetString(1); } if (stream.Read()) { nBits = input.ReadBits(8); _r.lateNonCriticalExtension = input.readOctetString(nBits); } return(_r); }
public dedicatedInfoType_Type Decode(BitArrayInputStream input) { int nBits; dedicatedInfoType_Type type = new dedicatedInfoType_Type(); type.InitDefaults(); switch (input.readBits(2)) { case 0: nBits = input.readBits(8); type.dedicatedInfoNAS = input.readOctetString(nBits); return(type); case 1: nBits = input.readBits(8); type.dedicatedInfoCDMA2000_1XRTT = input.readOctetString(nBits); return(type); case 2: nBits = input.readBits(8); type.dedicatedInfoCDMA2000_HRPD = input.readOctetString(nBits); return(type); } throw new Exception(GetType().Name + ":NoChoice had been choose"); }
public GERAN_Cell_ID Decode(BitArrayInputStream input) { GERAN_Cell_ID l_id = new GERAN_Cell_ID(); l_id.InitDefaults(); BitMaskStream stream = (input.ReadBit() != 0) ? new BitMaskStream(input, 1) : new BitMaskStream(input, 1); l_id.lAI = LAI.PerDecoder.Decode(input); input.skipUnreadedBits(); l_id.rAC = input.readOctetString(1); input.skipUnreadedBits(); l_id.cI = input.readOctetString(2); if (stream.Read()) { input.skipUnreadedBits(); l_id.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); l_id.iE_Extensions.Add(item); } } return(l_id); }
public LogMeasReport_r10 Decode(BitArrayInputStream input) { LogMeasReport_r10 _r = new LogMeasReport_r10(); _r.InitDefaults(); BitMaskStream stream = (input.ReadBit() != 0) ? new BitMaskStream(input, 1) : new BitMaskStream(input, 1); _r.absoluteTimeStamp_r10 = input.ReadBitString(0x30); _r.traceReference_r10 = TraceReference_r10.PerDecoder.Instance.Decode(input); _r.traceRecordingSessionRef_r10 = input.readOctetString(2); _r.tce_Id_r10 = input.readOctetString(1); _r.logMeasInfoList_r10 = new List <LogMeasInfo_r10>(); int nBits = 10; int num3 = input.ReadBits(nBits) + 1; for (int i = 0; i < num3; i++) { LogMeasInfo_r10 item = LogMeasInfo_r10.PerDecoder.Instance.Decode(input); _r.logMeasInfoList_r10.Add(item); } if (stream.Read()) { nBits = 1; _r.logMeasAvailable_r10 = (logMeasAvailable_r10_Enum)input.ReadBits(nBits); } return(_r); }
public LoggedMeasurementConfiguration_r10_IEs Decode(BitArrayInputStream input) { LoggedMeasurementConfiguration_r10_IEs es = new LoggedMeasurementConfiguration_r10_IEs(); es.InitDefaults(); BitMaskStream stream = new BitMaskStream(input, 2); es.traceReference_r10 = TraceReference_r10.PerDecoder.Instance.Decode(input); es.traceRecordingSessionRef_r10 = input.readOctetString(2); es.tce_Id_r10 = input.readOctetString(1); es.absoluteTimeInfo_r10 = input.ReadBitString(0x30); if (stream.Read()) { es.areaConfiguration_r10 = AreaConfiguration_r10.PerDecoder.Instance.Decode(input); } int nBits = 3; es.loggingDuration_r10 = (LoggingDuration_r10)input.ReadBits(nBits); nBits = 3; es.loggingInterval_r10 = (LoggingInterval_r10)input.ReadBits(nBits); if (stream.Read()) { es.nonCriticalExtension = LoggedMeasurementConfiguration_v1080_IEs.PerDecoder.Instance.Decode(input); } return(es); }
public E_CSFB_r9 Decode(BitArrayInputStream input) { int nBits; E_CSFB_r9 _r = new E_CSFB_r9(); _r.InitDefaults(); BitMaskStream stream = new BitMaskStream(input, 4); if (stream.Read()) { nBits = input.ReadBits(8); _r.messageContCDMA2000_1XRTT_r9 = input.readOctetString(nBits); } if (stream.Read()) { const int num2 = 1; _r.mobilityCDMA2000_HRPD_r9 = (mobilityCDMA2000_HRPD_r9_Enum)input.ReadBits(num2); } if (stream.Read()) { nBits = input.ReadBits(8); _r.messageContCDMA2000_HRPD_r9 = input.readOctetString(nBits); } if (stream.Read()) { _r.redirectCarrierCDMA2000_HRPD_r9 = CarrierFreqCDMA2000.PerDecoder.Instance.Decode(input); } return(_r); }
public GU_Group_ID Decode(BitArrayInputStream input) { GU_Group_ID p_id = new GU_Group_ID(); p_id.InitDefaults(); BitMaskStream stream = (input.ReadBit() != 0) ? new BitMaskStream(input, 1) : new BitMaskStream(input, 1); input.skipUnreadedBits(); p_id.pLMN_Identity = input.readOctetString(3); input.skipUnreadedBits(); p_id.mME_Group_ID = input.readOctetString(2); if (stream.Read()) { input.skipUnreadedBits(); p_id.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); p_id.iE_Extensions.Add(item); } } return(p_id); }
public AS_Context_v1130 Decode(BitArrayInputStream input) { int nBits; AS_Context_v1130 _v = new AS_Context_v1130(); _v.InitDefaults(); BitMaskStream stream = (input.readBit() != 0) ? new BitMaskStream(input, 3) : new BitMaskStream(input, 3); if (stream.Read()) { nBits = input.readBits(8); _v.idc_Indication_r11 = input.readOctetString(nBits); } if (stream.Read()) { nBits = input.readBits(8); _v.mbmsInterestIndication_r11 = input.readOctetString(nBits); } if (stream.Read()) { nBits = input.readBits(8); _v.powerPrefIndication_r11 = input.readOctetString(nBits); } return(_v); }
public E_RABToBeSetupItemBearerSUReq Decode(BitArrayInputStream input) { E_RABToBeSetupItemBearerSUReq req = new E_RABToBeSetupItemBearerSUReq(); req.InitDefaults(); BitMaskStream stream = (input.ReadBit() != 0) ? new BitMaskStream(input, 1) : new BitMaskStream(input, 1); input.ReadBit(); req.e_RAB_ID = input.ReadBits(4); req.e_RABlevelQoSParameters = E_RABLevelQoSParameters.PerDecoder.Instance.Decode(input); input.ReadBit(); int nBits = input.ReadBits(8); input.skipUnreadedBits(); req.transportLayerAddress = input.ReadBitString(nBits + 1); input.skipUnreadedBits(); req.gTP_TEID = input.readOctetString(4); input.skipUnreadedBits(); nBits = 0; while (true) { switch (input.ReadBit()) { case 0: nBits += input.ReadBits(7); goto Label_0130; case 1: switch (input.ReadBit()) { case 0: nBits += input.ReadBits(14); goto Label_0130; case 1: input.ReadBits(2); nBits += input.ReadBits(4) * 0x400; break; } break; } } Label_0130: req.nAS_PDU = input.readOctetString(nBits); if (stream.Read()) { input.skipUnreadedBits(); req.iE_Extensions = new List <ProtocolExtensionField>(); int num4 = 0x10; int num5 = input.ReadBits(num4) + 1; for (int i = 0; i < num5; i++) { ProtocolExtensionField item = ProtocolExtensionField.PerDecoder.Instance.Decode(input); req.iE_Extensions.Add(item); } } return(req); }
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 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); }
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); }
public GTPtunnelEndpoint Decode(BitArrayInputStream input) { GTPtunnelEndpoint endpoint = new GTPtunnelEndpoint(); endpoint.InitDefaults(); BitMaskStream stream = (input.ReadBit() != 0) ? new BitMaskStream(input, 1) : new BitMaskStream(input, 1); input.ReadBit(); int num = input.ReadBits(8); input.skipUnreadedBits(); endpoint.transportLayerAddress = input.ReadBitString(num + 1); input.skipUnreadedBits(); endpoint.gTP_TEID = input.readOctetString(4); if (stream.Read()) { input.skipUnreadedBits(); endpoint.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); endpoint.iE_Extensions.Add(item); } } return(endpoint); }
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); }
public RNReconfiguration_r10_IEs Decode(BitArrayInputStream input) { RNReconfiguration_r10_IEs es = new RNReconfiguration_r10_IEs(); es.InitDefaults(); BitMaskStream stream = new BitMaskStream(input, 4); if (stream.Read()) { es.rn_SystemInfo_r10 = RN_SystemInfo_r10.PerDecoder.Instance.Decode(input); } if (stream.Read()) { es.rn_SubframeConfig_r10 = RN_SubframeConfig_r10.PerDecoder.Instance.Decode(input); } 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); }
protected override void ProcessConfig(CellInfoUTRA_FDD_r9 config, BitArrayInputStream input) { config.physCellId_r9 = input.ReadBits(9); int nBits = input.ReadBits(8); config.utra_BCCH_Container_r9 = input.readOctetString(nBits); }
public string Decode(BitArrayInputStream input) { int num2 = input.readBits(8); input.skipUnreadedBits(); return(input.readOctetString(num2 + 1)); }
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 E_RABSetupItemCtxtSURes Decode(BitArrayInputStream input) { E_RABSetupItemCtxtSURes res = new E_RABSetupItemCtxtSURes(); 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>(); 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); }
public E_RABToBeSetupItemHOReq Decode(BitArrayInputStream input) { E_RABToBeSetupItemHOReq req = new E_RABToBeSetupItemHOReq(); req.InitDefaults(); BitMaskStream stream = (input.ReadBit() != 0) ? new BitMaskStream(input, 1) : new BitMaskStream(input, 1); input.ReadBit(); req.e_RAB_ID = input.ReadBits(4); input.ReadBit(); int num = input.ReadBits(8); input.skipUnreadedBits(); req.transportLayerAddress = input.ReadBitString(num + 1); input.skipUnreadedBits(); req.gTP_TEID = input.readOctetString(4); req.e_RABlevelQosParameters = E_RABLevelQoSParameters.PerDecoder.Instance.Decode(input); if (stream.Read()) { input.skipUnreadedBits(); req.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); req.iE_Extensions.Add(item); } } return(req); }
protected override void ProcessConfig(followingARFCNs_Type config, BitArrayInputStream input) { switch (input.ReadBits(2)) { case 0: { config.explicitListOfARFCNs = new List <long>(); int num4 = input.ReadBits(5); for (int i = 0; i < num4; i++) { long item = input.ReadBits(10); config.explicitListOfARFCNs.Add(item); } return; } case 1: config.equallySpacedARFCNs = equallySpacedARFCNs_Type.PerDecoder.Instance.Decode(input); return; case 2: int num = input.ReadBits(4); config.variableBitMapOfARFCNs = input.readOctetString(num + 1); return; } throw new Exception(GetType().Name + ":NoChoice had been choose"); }
public Global_ENB_ID Decode(BitArrayInputStream input) { var l_enb_id = new Global_ENB_ID(); l_enb_id.InitDefaults(); var stream = (input.readBit() != 0) ? new BitMaskStream(input, 1) : new BitMaskStream(input, 1); input.skipUnreadedBits(); l_enb_id.pLMNidentity = input.readOctetString(3); l_enb_id.eNB_ID = ENB_ID.PerDecoder.Instance.Decode(input); if (!stream.Read()) { return(l_enb_id); } input.skipUnreadedBits(); l_enb_id.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); l_enb_id.iE_Extensions.Add(item); } return(l_enb_id); }
public MBMSInterestIndication_r11_IEs Decode(BitArrayInputStream input) { int num2; MBMSInterestIndication_r11_IEs es = new MBMSInterestIndication_r11_IEs(); es.InitDefaults(); BitMaskStream stream = new BitMaskStream(input, 4); if (stream.Read()) { es.mbms_FreqList_r11 = new List <long>(); num2 = 3; int num3 = input.ReadBits(num2) + 1; for (int i = 0; i < num3; i++) { long item = input.ReadBits(0x12); es.mbms_FreqList_r11.Add(item); } } if (stream.Read()) { num2 = 1; es.mbms_Priority_r11 = (mbms_Priority_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); }