Exemple #1
0
                public carrierFreq_r9_Type Decode(BitArrayInputStream input)
                {
                    carrierFreq_r9_Type type = new carrierFreq_r9_Type();

                    type.InitDefaults();
                    bool flag = input.ReadBit() != 0;

                    switch (input.ReadBits(2))
                    {
                    case 0:
                        type.eutra_r9 = input.ReadBits(0x10);
                        return(type);

                    case 1:
                        type.utra_r9 = input.ReadBits(14);
                        return(type);

                    case 2:
                        if (flag)
                        {
                            type.eutra2_v9e0 = input.ReadBits(0x12) + 0x10000;
                        }
                        return(type);
                    }
                    throw new Exception(GetType().Name + ":NoChoice had been choose");
                }
                public carrierFreq_r9_Type Decode(BitArrayInputStream input)
                {
                    carrierFreq_r9_Type type = new carrierFreq_r9_Type();
                    type.InitDefaults();
                    bool flag = input.ReadBit() != 0;
                    switch (input.ReadBits(2))
                    {
                        case 0:
                            type.eutra_r9 = input.ReadBits(0x10);
                            return type;

                        case 1:
                            type.utra_r9 = input.ReadBits(14);
                            return type;

                        case 2:
                            if (flag)
                            {
                                type.eutra2_v9e0 = input.ReadBits(0x12) + 0x10000;
                            }
                            return type;
                    }
                    throw new Exception(GetType().Name + ":NoChoice had been choose");
                }