public X2AP_PDU Decode(BitArrayInputStream input) { X2AP_PDU xap_pdu = new X2AP_PDU(); xap_pdu.InitDefaults(); input.readBit(); switch (input.readBits(2)) { case 0: xap_pdu.initiatingMessage = InitiatingMessage.PerDecoder.Instance.Decode(input); return(xap_pdu); case 1: xap_pdu.successfulOutcome = SuccessfulOutcome.PerDecoder.Instance.Decode(input); return(xap_pdu); case 2: xap_pdu.unsuccessfulOutcome = UnsuccessfulOutcome.PerDecoder.Instance.Decode(input); return(xap_pdu); } throw new Exception(GetType().Name + ":NoChoice had been choose"); }
public X2AP_PDU Decode(BitArrayInputStream input) { X2AP_PDU xap_pdu = new X2AP_PDU(); xap_pdu.InitDefaults(); input.readBit(); switch (input.readBits(2)) { case 0: xap_pdu.initiatingMessage = InitiatingMessage.PerDecoder.Instance.Decode(input); return xap_pdu; case 1: xap_pdu.successfulOutcome = SuccessfulOutcome.PerDecoder.Instance.Decode(input); return xap_pdu; case 2: xap_pdu.unsuccessfulOutcome = UnsuccessfulOutcome.PerDecoder.Instance.Decode(input); return xap_pdu; } throw new Exception(GetType().Name + ":NoChoice had been choose"); }