public b1_Threshold_Type Decode(BitArrayInputStream input)
                                {
                                    b1_Threshold_Type type = new b1_Threshold_Type();

                                    type.InitDefaults();
                                    switch (input.readBits(2))
                                    {
                                    case 0:
                                        type.b1_ThresholdUTRA = ThresholdUTRA.PerDecoder.Instance.Decode(input);
                                        return(type);

                                    case 1:
                                        type.b1_ThresholdGERAN = input.readBits(6);
                                        return(type);

                                    case 2:
                                        type.b1_ThresholdCDMA2000 = input.readBits(6);
                                        return(type);
                                    }
                                    throw new Exception(GetType().Name + ":NoChoice had been choose");
                                }
Exemple #2
0
                                public b1_Threshold_Type Decode(BitArrayInputStream input)
                                {
                                    b1_Threshold_Type type = new b1_Threshold_Type();
                                    type.InitDefaults();
                                    switch (input.ReadBits(2))
                                    {
                                        case 0:
                                            type.b1_ThresholdUTRA = ThresholdUTRA.PerDecoder.Instance.Decode(input);
                                            return type;

                                        case 1:
                                            type.b1_ThresholdGERAN = input.ReadBits(6);
                                            return type;

                                        case 2:
                                            type.b1_ThresholdCDMA2000 = input.ReadBits(6);
                                            return type;
                                    }
                                    throw new Exception(GetType().Name + ":NoChoice had been choose");
                                }