public ThresholdUTRA Decode(BitArrayInputStream input) { ThresholdUTRA dutra = new ThresholdUTRA(); dutra.InitDefaults(); switch (input.ReadBits(1)) { case 0: dutra.utra_RSCP = input.ReadBits(7) + -5; return dutra; case 1: dutra.utra_EcN0 = input.ReadBits(6); return dutra; } throw new Exception(GetType().Name + ":NoChoice had been choose"); }
public ThresholdUTRA Decode(BitArrayInputStream input) { ThresholdUTRA dutra = new ThresholdUTRA(); dutra.InitDefaults(); switch (input.ReadBits(1)) { case 0: dutra.utra_RSCP = input.ReadBits(7) + -5; return(dutra); case 1: dutra.utra_EcN0 = input.ReadBits(6); return(dutra); } throw new Exception(GetType().Name + ":NoChoice had been choose"); }