Exemple #1
0
            public EUTRA_Mode_Info Decode(BitArrayInputStream input)
            {
                EUTRA_Mode_Info info = new EUTRA_Mode_Info();

                info.InitDefaults();
                input.ReadBit();
                switch (input.ReadBits(1))
                {
                case 0:
                    info.fDD = FDD_Info.PerDecoder.Instance.Decode(input);
                    return(info);

                case 1:
                    info.tDD = TDD_Info.PerDecoder.Instance.Decode(input);
                    return(info);
                }
                throw new Exception(GetType().Name + ":NoChoice had been choose");
            }
Exemple #2
0
            public EUTRA_Mode_Info Decode(BitArrayInputStream input)
            {
                EUTRA_Mode_Info info = new EUTRA_Mode_Info();
                info.InitDefaults();
                input.ReadBit();
                switch (input.ReadBits(1))
                {
                    case 0:
                        info.fDD = FDD_Info.PerDecoder.Instance.Decode(input);
                        return info;

                    case 1:
                        info.tDD = TDD_Info.PerDecoder.Instance.Decode(input);
                        return info;
                }
                throw new Exception(GetType().Name + ":NoChoice had been choose");
            }