public MeasurementInitiationResult_Item Decode(BitArrayInputStream input) { int num4; MeasurementInitiationResult_Item item = new MeasurementInitiationResult_Item(); item.InitDefaults(); BitMaskStream stream = (input.ReadBit() != 0) ? new BitMaskStream(input, 2) : new BitMaskStream(input, 2); item.cell_ID = ECGI.PerDecoder.Instance.Decode(input); if (stream.Read()) { item.measurementFailureCause_List = new List <ProtocolIE_Field>(); num4 = 5; int num5 = input.ReadBits(num4) + 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>(); num4 = 0x10; int num7 = input.ReadBits(num4) + 1; for (int j = 0; j < num7; j++) { ProtocolExtensionField field2 = ProtocolExtensionField.PerDecoder.Instance.Decode(input); item.iE_Extensions.Add(field2); } } return(item); }
public MeasurementInitiationResult_Item Decode(BitArrayInputStream input) { int num4; MeasurementInitiationResult_Item item = new MeasurementInitiationResult_Item(); item.InitDefaults(); BitMaskStream stream = (input.readBit() != 0) ? new BitMaskStream(input, 2) : new BitMaskStream(input, 2); item.cell_ID = ECGI.PerDecoder.Instance.Decode(input); if (stream.Read()) { item.measurementFailureCause_List = new List<ProtocolIE_Field>(); num4 = 5; int num5 = input.readBits(num4) + 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>(); num4 = 0x10; int num7 = input.readBits(num4) + 1; for (int j = 0; j < num7; j++) { ProtocolExtensionField field2 = ProtocolExtensionField.PerDecoder.Instance.Decode(input); item.iE_Extensions.Add(field2); } } return item; }