rewritten MysqlPacketDecoder