public DL_CCCH_MessageType Decode(BitArrayInputStream input) { DL_CCCH_MessageType type = new DL_CCCH_MessageType(); type.InitDefaults(); switch (input.readBits(1)) { case 0: type.c1 = c1_Type.PerDecoder.Instance.Decode(input); return(type); case 1: type.messageClassExtension = messageClassExtension_Type.PerDecoder.Instance.Decode(input); return(type); } throw new Exception(GetType().Name + ":NoChoice had been choose"); }
public DL_CCCH_MessageType Decode(BitArrayInputStream input) { DL_CCCH_MessageType type = new DL_CCCH_MessageType(); type.InitDefaults(); switch (input.readBits(1)) { case 0: type.c1 = c1_Type.PerDecoder.Instance.Decode(input); return type; case 1: type.messageClassExtension = messageClassExtension_Type.PerDecoder.Instance.Decode(input); return type; } throw new Exception(GetType().Name + ":NoChoice had been choose"); }