Example #1
0
            public RLC_Config Decode(BitArrayInputStream input)
            {
                RLC_Config config = new RLC_Config();

                config.InitDefaults();
                input.ReadBit();
                switch (input.ReadBits(2))
                {
                case 0:
                    config.am = am_Type.PerDecoder.Instance.Decode(input);
                    return(config);

                case 1:
                    config.um_Bi_Directional = um_Bi_Directional_Type.PerDecoder.Instance.Decode(input);
                    return(config);

                case 2:
                    config.um_Uni_Directional_UL = um_Uni_Directional_UL_Type.PerDecoder.Instance.Decode(input);
                    return(config);

                case 3:
                    config.um_Uni_Directional_DL = um_Uni_Directional_DL_Type.PerDecoder.Instance.Decode(input);
                    return(config);
                }
                throw new Exception(GetType().Name + ":NoChoice had been choose");
            }
Example #2
0
            public RLC_Config Decode(BitArrayInputStream input)
            {
                RLC_Config config = new RLC_Config();
                config.InitDefaults();
                input.ReadBit();
                switch (input.ReadBits(2))
                {
                    case 0:
                        config.am = am_Type.PerDecoder.Instance.Decode(input);
                        return config;

                    case 1:
                        config.um_Bi_Directional = um_Bi_Directional_Type.PerDecoder.Instance.Decode(input);
                        return config;

                    case 2:
                        config.um_Uni_Directional_UL = um_Uni_Directional_UL_Type.PerDecoder.Instance.Decode(input);
                        return config;

                    case 3:
                        config.um_Uni_Directional_DL = um_Uni_Directional_DL_Type.PerDecoder.Instance.Decode(input);
                        return config;
                }
                throw new Exception(GetType().Name + ":NoChoice had been choose");
            }