public SystemInformationBlockType5 Decode(BitArrayInputStream input) { var type = new SystemInformationBlockType5(); type.InitDefaults(); var flag = false; flag = input.ReadBit() != 0; var stream = flag ? new BitMaskStream(input, 1) : new BitMaskStream(input, 0); type.interFreqCarrierFreqList = new List <InterFreqCarrierFreqInfo>(); var num2 = 3; var num3 = input.ReadBits(num2) + 1; for (var i = 0; i < num3; i++) { var item = InterFreqCarrierFreqInfo.PerDecoder.Instance.Decode(input); type.interFreqCarrierFreqList.Add(item); } if (flag && stream.Read()) { var nBits = input.ReadBits(8); type.lateNonCriticalExtension = input.readOctetString(nBits); } return(type); }
public SystemInformationBlockType5 Decode(BitArrayInputStream input) { var type = new SystemInformationBlockType5(); type.InitDefaults(); var flag = false; flag = input.ReadBit() != 0; var stream = flag ? new BitMaskStream(input, 1) : new BitMaskStream(input, 0); type.interFreqCarrierFreqList = new List<InterFreqCarrierFreqInfo>(); var num2 = 3; var num3 = input.ReadBits(num2) + 1; for (var i = 0; i < num3; i++) { var item = InterFreqCarrierFreqInfo.PerDecoder.Instance.Decode(input); type.interFreqCarrierFreqList.Add(item); } if (flag && stream.Read()) { var nBits = input.ReadBits(8); type.lateNonCriticalExtension = input.readOctetString(nBits); } return type; }