/**
  * @return int
  */
 private function getSizeToRemoveByVersion()
 {
     if (BinLogServerInfo::MYSQL_VERSION_MARIADB !== BinLogServerInfo::getVersion()) {
         return 8;
     }
     return 0;
 }
 /**
  * @throws BinLogException
  */
 private function auth()
 {
     $data = $this->packAuth->createAuthenticationBinary(ConstCapabilityFlags::getCapabilities(), $this->config->getUser(), $this->config->getPassword(), BinLogServerInfo::getSalt());
     $this->writeToSocket($data);
     $this->getPacket();
 }