Example #1
0
            public CellsToAddModUTRA_TDD Decode(BitArrayInputStream input)
            {
                CellsToAddModUTRA_TDD dutra_tdd = new CellsToAddModUTRA_TDD();

                dutra_tdd.InitDefaults();
                dutra_tdd.cellIndex  = input.readBits(5) + 1;
                dutra_tdd.physCellId = input.readBits(7);
                return(dutra_tdd);
            }
Example #2
0
                public cellsToAddModList_Type Decode(BitArrayInputStream input)
                {
                    int num2;
                    cellsToAddModList_Type type = new cellsToAddModList_Type();

                    type.InitDefaults();
                    switch (input.ReadBits(1))
                    {
                    case 0:
                    {
                        type.cellsToAddModListUTRA_FDD = new List <CellsToAddModUTRA_FDD>();
                        num2 = 5;
                        int num4 = input.ReadBits(num2) + 1;
                        for (int i = 0; i < num4; i++)
                        {
                            CellsToAddModUTRA_FDD item = CellsToAddModUTRA_FDD.PerDecoder.Instance.Decode(input);
                            type.cellsToAddModListUTRA_FDD.Add(item);
                        }
                        return(type);
                    }

                    case 1:
                    {
                        type.cellsToAddModListUTRA_TDD = new List <CellsToAddModUTRA_TDD>();
                        num2 = 5;
                        int num6 = input.ReadBits(num2) + 1;
                        for (int j = 0; j < num6; j++)
                        {
                            CellsToAddModUTRA_TDD dutra_tdd = CellsToAddModUTRA_TDD.PerDecoder.Instance.Decode(input);
                            type.cellsToAddModListUTRA_TDD.Add(dutra_tdd);
                        }
                        return(type);
                    }
                    }
                    throw new Exception(GetType().Name + ":NoChoice had been choose");
                }
Example #3
0
 public CellsToAddModUTRA_TDD Decode(BitArrayInputStream input)
 {
     CellsToAddModUTRA_TDD dutra_tdd = new CellsToAddModUTRA_TDD();
     dutra_tdd.InitDefaults();
     dutra_tdd.cellIndex = input.readBits(5) + 1;
     dutra_tdd.physCellId = input.readBits(7);
     return dutra_tdd;
 }