from bool bDecode to int decodeType in CTAPacket