public geran_Type Decode(BitArrayInputStream input) { geran_Type type = new geran_Type(); type.InitDefaults(); BitMaskStream stream = new BitMaskStream(input, 2); type.physCellId = PhysCellIdGERAN.PerDecoder.Instance.Decode(input); type.carrierFreq = CarrierFreqGERAN.PerDecoder.Instance.Decode(input); if (stream.Read()) { type.networkControlOrder = input.readBitString(2); } if (stream.Read()) { type.systemInformation = SI_OrPSI_GERAN.PerDecoder.Instance.Decode(input); } return(type); }
public geran_Type Decode(BitArrayInputStream input) { geran_Type type = new geran_Type(); type.InitDefaults(); BitMaskStream stream = new BitMaskStream(input, 2); type.physCellId = PhysCellIdGERAN.PerDecoder.Instance.Decode(input); type.carrierFreq = CarrierFreqGERAN.PerDecoder.Instance.Decode(input); if (stream.Read()) { type.networkControlOrder = input.readBitString(2); } if (stream.Read()) { type.systemInformation = SI_OrPSI_GERAN.PerDecoder.Instance.Decode(input); } return type; }