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

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

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

                                    case 2:
                                        type.b2_Threshold2CDMA2000 = input.readBits(6);
                                        return(type);
                                    }
                                    throw new Exception(GetType().Name + ":NoChoice had been choose");
                                }
Exemplo n.º 2
0
                                public b2_Threshold2_Type Decode(BitArrayInputStream input)
                                {
                                    b2_Threshold2_Type type = new b2_Threshold2_Type();
                                    type.InitDefaults();
                                    switch (input.ReadBits(2))
                                    {
                                        case 0:
                                            type.b2_Threshold2UTRA = ThresholdUTRA.PerDecoder.Instance.Decode(input);
                                            return type;

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

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