public ConnEstFailReport_r11 Decode(BitArrayInputStream input) { ConnEstFailReport_r11 _r = new ConnEstFailReport_r11(); _r.InitDefaults(); BitMaskStream stream = (input.readBit() != 0) ? new BitMaskStream(input, 3) : new BitMaskStream(input, 3); _r.failedCellId_r11 = CellGlobalIdEUTRA.PerDecoder.Instance.Decode(input); if (stream.Read()) { _r.locationInfo_r11 = LocationInfo_r10.PerDecoder.Instance.Decode(input); } _r.measResultFailedCell_r11 = measResultFailedCell_r11_Type.PerDecoder.Instance.Decode(input); if (stream.Read()) { _r.measResultNeighCells_r11 = measResultNeighCells_r11_Type.PerDecoder.Instance.Decode(input); } _r.numberOfPreamblesSent_r11 = input.readBits(8) + 1; _r.contentionDetected_r11 = input.readBit() == 1; _r.maxTxPowerReached_r11 = input.readBit() == 1; _r.timeSinceFailure_r11 = input.readBits(0x12); if (stream.Read()) { _r.measResultListEUTRA_v1130 = new List <MeasResult2EUTRA_v9e0>(); int nBits = 3; int num3 = input.readBits(nBits) + 1; for (int i = 0; i < num3; i++) { MeasResult2EUTRA_v9e0 item = MeasResult2EUTRA_v9e0.PerDecoder.Instance.Decode(input); _r.measResultListEUTRA_v1130.Add(item); } } return(_r); }
public ConnEstFailReport_r11 Decode(BitArrayInputStream input) { ConnEstFailReport_r11 _r = new ConnEstFailReport_r11(); _r.InitDefaults(); BitMaskStream stream = (input.readBit() != 0) ? new BitMaskStream(input, 3) : new BitMaskStream(input, 3); _r.failedCellId_r11 = CellGlobalIdEUTRA.PerDecoder.Instance.Decode(input); if (stream.Read()) { _r.locationInfo_r11 = LocationInfo_r10.PerDecoder.Instance.Decode(input); } _r.measResultFailedCell_r11 = measResultFailedCell_r11_Type.PerDecoder.Instance.Decode(input); if (stream.Read()) { _r.measResultNeighCells_r11 = measResultNeighCells_r11_Type.PerDecoder.Instance.Decode(input); } _r.numberOfPreamblesSent_r11 = input.readBits(8) + 1; _r.contentionDetected_r11 = input.readBit() == 1; _r.maxTxPowerReached_r11 = input.readBit() == 1; _r.timeSinceFailure_r11 = input.readBits(0x12); if (stream.Read()) { _r.measResultListEUTRA_v1130 = new List<MeasResult2EUTRA_v9e0>(); int nBits = 3; int num3 = input.readBits(nBits) + 1; for (int i = 0; i < num3; i++) { MeasResult2EUTRA_v9e0 item = MeasResult2EUTRA_v9e0.PerDecoder.Instance.Decode(input); _r.measResultListEUTRA_v1130.Add(item); } } return _r; }