public QuantityConfigUTRA Decode(BitArrayInputStream input) { QuantityConfigUTRA gutra = new QuantityConfigUTRA(); gutra.InitDefaults(); BitMaskStream stream = new BitMaskStream(input, 1); int nBits = 1; gutra.measQuantityUTRA_FDD = (measQuantityUTRA_FDD_Enum)input.readBits(nBits); nBits = 1; gutra.measQuantityUTRA_TDD = (measQuantityUTRA_TDD_Enum)input.readBits(nBits); if (stream.Read()) { nBits = (input.readBit() == 0) ? 4 : 4; gutra.filterCoefficient = (FilterCoefficient)input.readBits(nBits); } return(gutra); }
public QuantityConfigUTRA Decode(BitArrayInputStream input) { QuantityConfigUTRA gutra = new QuantityConfigUTRA(); gutra.InitDefaults(); BitMaskStream stream = new BitMaskStream(input, 1); int nBits = 1; gutra.measQuantityUTRA_FDD = (measQuantityUTRA_FDD_Enum)input.readBits(nBits); nBits = 1; gutra.measQuantityUTRA_TDD = (measQuantityUTRA_TDD_Enum)input.readBits(nBits); if (stream.Read()) { nBits = (input.readBit() == 0) ? 4 : 4; gutra.filterCoefficient = (FilterCoefficient)input.readBits(nBits); } return gutra; }