Beispiel #1
0
            public S1AP_PDU Decode(BitArrayInputStream input)
            {
                S1AP_PDU sap_pdu = new S1AP_PDU();
                sap_pdu.InitDefaults();
                input.readBit();
                switch (input.readBits(2))
                {
                    case 0:
                        sap_pdu.initiatingMessage = InitiatingMessage.PerDecoder.Instance.Decode(input);
                        return sap_pdu;

                    case 1:
                        sap_pdu.successfulOutcome = SuccessfulOutcome.PerDecoder.Instance.Decode(input);
                        return sap_pdu;

                    case 2:
                        sap_pdu.unsuccessfulOutcome = UnsuccessfulOutcome.PerDecoder.Instance.Decode(input);
                        return sap_pdu;
                }
                throw new Exception(GetType().Name + ":NoChoice had been choose");
            }
Beispiel #2
0
            public S1AP_PDU Decode(BitArrayInputStream input)
            {
                S1AP_PDU sap_pdu = new S1AP_PDU();

                sap_pdu.InitDefaults();
                input.readBit();
                switch (input.readBits(2))
                {
                case 0:
                    sap_pdu.initiatingMessage = InitiatingMessage.PerDecoder.Instance.Decode(input);
                    return(sap_pdu);

                case 1:
                    sap_pdu.successfulOutcome = SuccessfulOutcome.PerDecoder.Instance.Decode(input);
                    return(sap_pdu);

                case 2:
                    sap_pdu.unsuccessfulOutcome = UnsuccessfulOutcome.PerDecoder.Instance.Decode(input);
                    return(sap_pdu);
                }
                throw new Exception(GetType().Name + ":NoChoice had been choose");
            }