public CarrierBandwidthEUTRA Decode(BitArrayInputStream input) { CarrierBandwidthEUTRA heutra = new CarrierBandwidthEUTRA(); heutra.InitDefaults(); BitMaskStream stream = new BitMaskStream(input, 1); int nBits = 4; heutra.dl_Bandwidth = (dl_Bandwidth_Enum)input.readBits(nBits); if (stream.Read()) { nBits = 4; heutra.ul_Bandwidth = (ul_Bandwidth_Enum)input.readBits(nBits); } return(heutra); }
public CarrierBandwidthEUTRA Decode(BitArrayInputStream input) { CarrierBandwidthEUTRA heutra = new CarrierBandwidthEUTRA(); heutra.InitDefaults(); BitMaskStream stream = new BitMaskStream(input, 1); int nBits = 4; heutra.dl_Bandwidth = (dl_Bandwidth_Enum)input.readBits(nBits); if (stream.Read()) { nBits = 4; heutra.ul_Bandwidth = (ul_Bandwidth_Enum)input.readBits(nBits); } return heutra; }