同步操作将从 nwsuafzq/MySQLAdvisor 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
/* compress.c -- compress a memory buffer* Copyright (C) 1995-2003 Jean-loup Gailly.* For conditions of distribution and use, see copyright notice in zlib.h*//* @(#) $Id$ */#define ZLIB_INTERNAL#include "zlib.h"/* ===========================================================================Compresses the source buffer into the destination buffer. The levelparameter has the same meaning as in deflateInit. sourceLen is the bytelength of the source buffer. Upon entry, destLen is the total size of thedestination buffer, which must be at least 0.1% larger than sourceLen plus12 bytes. Upon exit, destLen is the actual size of the compressed buffer.compress2 returns Z_OK if success, Z_MEM_ERROR if there was not enoughmemory, Z_BUF_ERROR if there was not enough room in the output buffer,Z_STREAM_ERROR if the level parameter is invalid.*/int ZEXPORT compress2 (dest, destLen, source, sourceLen, level)Bytef *dest;uLongf *destLen;const Bytef *source;uLong sourceLen;int level;{z_stream stream;int err;stream.next_in = (Bytef*)source;stream.avail_in = (uInt)sourceLen;#ifdef MAXSEG_64K/* Check for source > 64K on 16-bit machine: */if ((uLong)stream.avail_in != sourceLen) return Z_BUF_ERROR;#endifstream.next_out = dest;stream.avail_out = (uInt)*destLen;if ((uLong)stream.avail_out != *destLen) return Z_BUF_ERROR;stream.zalloc = (alloc_func)0;stream.zfree = (free_func)0;stream.opaque = (voidpf)0;err = deflateInit(&stream, level);if (err != Z_OK) return err;err = deflate(&stream, Z_FINISH);if (err != Z_STREAM_END) {deflateEnd(&stream);return err == Z_OK ? Z_BUF_ERROR : err;}*destLen = stream.total_out;err = deflateEnd(&stream);return err;}/* ===========================================================================*/int ZEXPORT compress (dest, destLen, source, sourceLen)Bytef *dest;uLongf *destLen;const Bytef *source;uLong sourceLen;{return compress2(dest, destLen, source, sourceLen, Z_DEFAULT_COMPRESSION);}/* ===========================================================================If the default memLevel or windowBits for deflateInit() is changed, thenthis function needs to be updated.*/uLong ZEXPORT compressBound (sourceLen)uLong sourceLen;{return sourceLen + (sourceLen >> 12) + (sourceLen >> 14) + 11;}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。