public Handover Decode(BitArrayInputStream input) { Handover handover = new Handover(); handover.InitDefaults(); BitMaskStream stream = new BitMaskStream(input, 2); int num2 = (input.readBit() == 0) ? 3 : 3; handover.targetRAT_Type = (targetRAT_Type_Enum)input.readBits(num2); int nBits = input.readBits(8); handover.targetRAT_MessageContainer = input.readOctetString(nBits); if (stream.Read()) { handover.nas_SecurityParamFromEUTRA = input.readOctetString(1); } if (stream.Read()) { handover.systemInformation = SI_OrPSI_GERAN.PerDecoder.Instance.Decode(input); } return handover; }
public Handover Decode(BitArrayInputStream input) { Handover handover = new Handover(); handover.InitDefaults(); BitMaskStream stream = new BitMaskStream(input, 2); int num2 = (input.ReadBit() == 0) ? 3 : 3; handover.targetRAT_Type = (targetRAT_Type_Enum)input.ReadBits(num2); int nBits = input.ReadBits(8); handover.targetRAT_MessageContainer = input.readOctetString(nBits); if (stream.Read()) { handover.nas_SecurityParamFromEUTRA = input.readOctetString(1); } if (stream.Read()) { handover.systemInformation = SI_OrPSI_GERAN.PerDecoder.Instance.Decode(input); } return(handover); }