예제 #1
0
파일: TPC.cs 프로젝트: ouyh18/LteTools
            public TPC_Index Decode(BitArrayInputStream input)
            {
                TPC_Index index = new TPC_Index();
                index.InitDefaults();
                switch (input.readBits(1))
                {
                    case 0:
                        index.indexOfFormat3 = input.readBits(4) + 1;
                        return index;

                    case 1:
                        index.indexOfFormat3A = input.readBits(5) + 1;
                        return index;
                }
                throw new Exception(GetType().Name + ":NoChoice had been choose");
            }
예제 #2
0
파일: TPC.cs 프로젝트: xuhaoa/LtePlatform
            public TPC_Index Decode(BitArrayInputStream input)
            {
                TPC_Index index = new TPC_Index();
                index.InitDefaults();
                switch (input.ReadBits(1))
                {
                    case 0:
                        index.indexOfFormat3 = input.ReadBits(4) + 1;
                        return index;

                    case 1:
                        index.indexOfFormat3A = input.ReadBits(5) + 1;
                        return index;
                }
                throw new Exception(GetType().Name + ":NoChoice had been choose");
            }