示例#1
0
            public ThresholdEUTRA Decode(BitArrayInputStream input)
            {
                ThresholdEUTRA deutra = new ThresholdEUTRA();
                deutra.InitDefaults();
                switch (input.ReadBits(1))
                {
                    case 0:
                        deutra.threshold_RSRP = input.ReadBits(7);
                        return deutra;

                    case 1:
                        deutra.threshold_RSRQ = input.ReadBits(6);
                        return deutra;
                }
                throw new Exception(GetType().Name + ":NoChoice had been choose");
            }
示例#2
0
            public ThresholdEUTRA Decode(BitArrayInputStream input)
            {
                ThresholdEUTRA deutra = new ThresholdEUTRA();

                deutra.InitDefaults();
                switch (input.ReadBits(1))
                {
                case 0:
                    deutra.threshold_RSRP = input.ReadBits(7);
                    return(deutra);

                case 1:
                    deutra.threshold_RSRQ = input.ReadBits(6);
                    return(deutra);
                }
                throw new Exception(GetType().Name + ":NoChoice had been choose");
            }