Exemplo n.º 1
0
            public BCCH_DL_SCH_MessageType Decode(BitArrayInputStream input)
            {
                var type = new BCCH_DL_SCH_MessageType();

                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");
            }
Exemplo n.º 2
0
            public BCCH_DL_SCH_MessageType Decode(BitArrayInputStream input)
            {
                BCCH_DL_SCH_MessageType type = new BCCH_DL_SCH_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");
            }