Exemplo n.º 1
0
            public RLF_Report_r9 Decode(BitArrayInputStream input)
            {
                BitMaskStream stream2;
                RLF_Report_r9 _r = new RLF_Report_r9();

                _r.InitDefaults();
                bool          flag   = input.readBit() != 0;
                BitMaskStream stream = new BitMaskStream(input, 1);

                _r.measResultLastServCell_r9 = measResultLastServCell_r9_Type.PerDecoder.Instance.Decode(input);
                if (stream.Read())
                {
                    _r.measResultNeighCells_r9 = measResultNeighCells_r9_Type.PerDecoder.Instance.Decode(input);
                }
                if (flag)
                {
                    stream2 = new BitMaskStream(input, 6);
                    if (stream2.Read())
                    {
                        _r.locationInfo_r10 = LocationInfo_r10.PerDecoder.Instance.Decode(input);
                    }
                    if (stream2.Read())
                    {
                        _r.failedPCellId_r10 = failedPCellId_r10_Type.PerDecoder.Instance.Decode(input);
                    }
                    if (stream2.Read())
                    {
                        _r.reestablishmentCellId_r10 = CellGlobalIdEUTRA.PerDecoder.Instance.Decode(input);
                    }
                    if (stream2.Read())
                    {
                        _r.timeConnFailure_r10 = input.readBits(10);
                    }
                    if (stream2.Read())
                    {
                        int nBits = 1;
                        _r.connectionFailureType_r10 = (connectionFailureType_r10_Enum)input.readBits(nBits);
                    }
                    if (stream2.Read())
                    {
                        _r.previousPCellId_r10 = CellGlobalIdEUTRA.PerDecoder.Instance.Decode(input);
                    }
                }
                if (flag)
                {
                    stream2 = new BitMaskStream(input, 1);
                    if (stream2.Read())
                    {
                        _r.failedPCellId_v1090 = failedPCellId_v1090_Type.PerDecoder.Instance.Decode(input);
                    }
                }
                if (flag)
                {
                    stream2 = new BitMaskStream(input, 3);
                    if (stream2.Read())
                    {
                        _r.basicFields_r11 = basicFields_r11_Type.PerDecoder.Instance.Decode(input);
                    }
                    if (stream2.Read())
                    {
                        _r.previousUTRA_CellId_r11 = previousUTRA_CellId_r11_Type.PerDecoder.Instance.Decode(input);
                    }
                    if (stream2.Read())
                    {
                        _r.selectedUTRA_CellId_r11 = selectedUTRA_CellId_r11_Type.PerDecoder.Instance.Decode(input);
                    }
                }
                return(_r);
            }
Exemplo n.º 2
0
 public RLF_Report_r9 Decode(BitArrayInputStream input)
 {
     BitMaskStream stream2;
     RLF_Report_r9 _r = new RLF_Report_r9();
     _r.InitDefaults();
     bool flag = input.readBit() != 0;
     BitMaskStream stream = new BitMaskStream(input, 1);
     _r.measResultLastServCell_r9 = measResultLastServCell_r9_Type.PerDecoder.Instance.Decode(input);
     if (stream.Read())
     {
         _r.measResultNeighCells_r9 = measResultNeighCells_r9_Type.PerDecoder.Instance.Decode(input);
     }
     if (flag)
     {
         stream2 = new BitMaskStream(input, 6);
         if (stream2.Read())
         {
             _r.locationInfo_r10 = LocationInfo_r10.PerDecoder.Instance.Decode(input);
         }
         if (stream2.Read())
         {
             _r.failedPCellId_r10 = failedPCellId_r10_Type.PerDecoder.Instance.Decode(input);
         }
         if (stream2.Read())
         {
             _r.reestablishmentCellId_r10 = CellGlobalIdEUTRA.PerDecoder.Instance.Decode(input);
         }
         if (stream2.Read())
         {
             _r.timeConnFailure_r10 = input.readBits(10);
         }
         if (stream2.Read())
         {
             int nBits = 1;
             _r.connectionFailureType_r10 = (connectionFailureType_r10_Enum)input.readBits(nBits);
         }
         if (stream2.Read())
         {
             _r.previousPCellId_r10 = CellGlobalIdEUTRA.PerDecoder.Instance.Decode(input);
         }
     }
     if (flag)
     {
         stream2 = new BitMaskStream(input, 1);
         if (stream2.Read())
         {
             _r.failedPCellId_v1090 = failedPCellId_v1090_Type.PerDecoder.Instance.Decode(input);
         }
     }
     if (flag)
     {
         stream2 = new BitMaskStream(input, 3);
         if (stream2.Read())
         {
             _r.basicFields_r11 = basicFields_r11_Type.PerDecoder.Instance.Decode(input);
         }
         if (stream2.Read())
         {
             _r.previousUTRA_CellId_r11 = previousUTRA_CellId_r11_Type.PerDecoder.Instance.Decode(input);
         }
         if (stream2.Read())
         {
             _r.selectedUTRA_CellId_r11 = selectedUTRA_CellId_r11_Type.PerDecoder.Instance.Decode(input);
         }
     }
     return _r;
 }