public ENB_StatusTransfer_TransparentContainer Decode(BitArrayInputStream input) { ENB_StatusTransfer_TransparentContainer container = new ENB_StatusTransfer_TransparentContainer(); container.InitDefaults(); BitMaskStream stream = (input.readBit() != 0) ? new BitMaskStream(input, 1) : new BitMaskStream(input, 1); input.skipUnreadedBits(); container.bearers_SubjectToStatusTransferList = new List <ProtocolIE_Field>(); int nBits = 8; int num5 = input.readBits(nBits) + 1; for (int i = 0; i < num5; i++) { ProtocolIE_Field item = ProtocolIE_Field.PerDecoder.Instance.Decode(input); container.bearers_SubjectToStatusTransferList.Add(item); } if (stream.Read()) { input.skipUnreadedBits(); container.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); container.iE_Extensions.Add(field2); } } return(container); }
public ENB_StatusTransfer_TransparentContainer Decode(BitArrayInputStream input) { ENB_StatusTransfer_TransparentContainer container = new ENB_StatusTransfer_TransparentContainer(); container.InitDefaults(); BitMaskStream stream = (input.ReadBit() != 0) ? new BitMaskStream(input, 1) : new BitMaskStream(input, 1); input.skipUnreadedBits(); container.bearers_SubjectToStatusTransferList = new List<ProtocolIE_Field>(); int nBits = 8; int num5 = input.ReadBits(nBits) + 1; for (int i = 0; i < num5; i++) { ProtocolIE_Field item = ProtocolIE_Field.PerDecoder.Instance.Decode(input); container.bearers_SubjectToStatusTransferList.Add(item); } if (stream.Read()) { input.skipUnreadedBits(); container.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); container.iE_Extensions.Add(field2); } } return container; }