public UE_S1AP_ID_pair Decode(BitArrayInputStream input) { UE_S1AP_ID_pair _pair = new UE_S1AP_ID_pair(); _pair.InitDefaults(); BitMaskStream stream = (input.readBit() != 0) ? new BitMaskStream(input, 1) : new BitMaskStream(input, 1); int nBits = input.readBits(2) + 1; input.skipUnreadedBits(); _pair.mME_UE_S1AP_ID = input.readBits(nBits * 8); nBits = input.readBits(2) + 1; input.skipUnreadedBits(); _pair.eNB_UE_S1AP_ID = input.readBits(nBits * 8); if (stream.Read()) { input.skipUnreadedBits(); _pair.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); _pair.iE_Extensions.Add(item); } } return(_pair); }
public UE_S1AP_ID_pair Decode(BitArrayInputStream input) { UE_S1AP_ID_pair _pair = new UE_S1AP_ID_pair(); _pair.InitDefaults(); BitMaskStream stream = (input.ReadBit() != 0) ? new BitMaskStream(input, 1) : new BitMaskStream(input, 1); int nBits = input.ReadBits(2) + 1; input.skipUnreadedBits(); _pair.mME_UE_S1AP_ID = input.ReadBits(nBits * 8); nBits = input.ReadBits(2) + 1; input.skipUnreadedBits(); _pair.eNB_UE_S1AP_ID = input.ReadBits(nBits * 8); if (stream.Read()) { input.skipUnreadedBits(); _pair.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); _pair.iE_Extensions.Add(item); } } return _pair; }