Esempio n. 1
0
            public PCCH_MessageType Decode(BitArrayInputStream input)
            {
                PCCH_MessageType type = new PCCH_MessageType();

                type.InitDefaults();
                switch (input.readBits(1))
                {
                case 0:
                    type.c1 = c1_Type.PerDecoder.Instance.Decode(input);
                    return(type);

                case 1:
                    type.messageClassExtension = messageClassExtension_Type.PerDecoder.Instance.Decode(input);
                    return(type);
                }
                throw new Exception(GetType().Name + ":NoChoice had been choose");
            }
Esempio n. 2
0
            public PCCH_MessageType Decode(BitArrayInputStream input)
            {
                PCCH_MessageType type = new PCCH_MessageType();
                type.InitDefaults();
                switch (input.readBits(1))
                {
                    case 0:
                        type.c1 = c1_Type.PerDecoder.Instance.Decode(input);
                        return type;

                    case 1:
                        type.messageClassExtension = messageClassExtension_Type.PerDecoder.Instance.Decode(input);
                        return type;
                }
                throw new Exception(GetType().Name + ":NoChoice had been choose");
            }