亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? unzip.c

?? LINUX下的源碼工具,可自己分析,或者直接裝在系統上作為應用
?? C
?? 第 1 頁 / 共 3 頁
字號:
	if (unzlocal_getLong(s->file,&uData) != UNZ_OK) /* size uncompr */		err=UNZ_ERRNO;	else if ((err==UNZ_OK) && (uData!=s->cur_file_info.uncompressed_size) && 							  ((uFlags & 8)==0))		err=UNZ_BADZIPFILE;	if (unzlocal_getShort(s->file,&size_filename) != UNZ_OK)		err=UNZ_ERRNO;	else if ((err==UNZ_OK) && (size_filename!=s->cur_file_info.size_filename))		err=UNZ_BADZIPFILE;	*piSizeVar += (uInt)size_filename;	if (unzlocal_getShort(s->file,&size_extra_field) != UNZ_OK)		err=UNZ_ERRNO;	*poffset_local_extrafield= s->cur_file_info_internal.offset_curfile +									SIZEZIPLOCALHEADER + size_filename;	*psize_local_extrafield = (uInt)size_extra_field;	*piSizeVar += (uInt)size_extra_field;	return err;}												/*  Open for reading data the current file in the zipfile.  If there is no error and the file is opened, the return value is UNZ_OK.*/extern int ZEXPORT unzOpenCurrentFile (file)	unzFile file;{	int err=UNZ_OK;	int Store;	uInt iSizeVar;	unz_s* s;	file_in_zip_read_info_s* pfile_in_zip_read_info;	uLong offset_local_extrafield;  /* offset of the local extra field */	uInt  size_local_extrafield;    /* size of the local extra field */	if (file==NULL)		return UNZ_PARAMERROR;	s=(unz_s*)file;	if (!s->current_file_ok)		return UNZ_PARAMERROR;    if (s->pfile_in_zip_read != NULL)        unzCloseCurrentFile(file);	if (unzlocal_CheckCurrentFileCoherencyHeader(s,&iSizeVar,				&offset_local_extrafield,&size_local_extrafield)!=UNZ_OK)		return UNZ_BADZIPFILE;	pfile_in_zip_read_info = (file_in_zip_read_info_s*)									    ALLOC(sizeof(file_in_zip_read_info_s));	if (pfile_in_zip_read_info==NULL)		return UNZ_INTERNALERROR;	pfile_in_zip_read_info->read_buffer=(char*)ALLOC(UNZ_BUFSIZE);	pfile_in_zip_read_info->offset_local_extrafield = offset_local_extrafield;	pfile_in_zip_read_info->size_local_extrafield = size_local_extrafield;	pfile_in_zip_read_info->pos_local_extrafield=0;	if (pfile_in_zip_read_info->read_buffer==NULL)	{		TRYFREE(pfile_in_zip_read_info);		return UNZ_INTERNALERROR;	}	pfile_in_zip_read_info->stream_initialised=0;		if ((s->cur_file_info.compression_method!=0) &&        (s->cur_file_info.compression_method!=Z_DEFLATED))		err=UNZ_BADZIPFILE;	Store = s->cur_file_info.compression_method==0;	pfile_in_zip_read_info->crc32_wait=s->cur_file_info.crc;	pfile_in_zip_read_info->crc32=0;	pfile_in_zip_read_info->compression_method =            s->cur_file_info.compression_method;	pfile_in_zip_read_info->file=s->file;	pfile_in_zip_read_info->byte_before_the_zipfile=s->byte_before_the_zipfile;    pfile_in_zip_read_info->stream.total_out = 0;	if (!Store)	{	  pfile_in_zip_read_info->stream.zalloc = (alloc_func)0;	  pfile_in_zip_read_info->stream.zfree = (free_func)0;	  pfile_in_zip_read_info->stream.opaque = (voidpf)0;       	  err=inflateInit2(&pfile_in_zip_read_info->stream, -MAX_WBITS);	  if (err == Z_OK)	    pfile_in_zip_read_info->stream_initialised=1;        /* windowBits is passed < 0 to tell that there is no zlib header.         * Note that in this case inflate *requires* an extra "dummy" byte         * after the compressed stream in order to complete decompression and         * return Z_STREAM_END.          * In unzip, i don't wait absolutely Z_STREAM_END because I known the          * size of both compressed and uncompressed data         */	}	pfile_in_zip_read_info->rest_read_compressed =             s->cur_file_info.compressed_size ;	pfile_in_zip_read_info->rest_read_uncompressed =             s->cur_file_info.uncompressed_size ;		pfile_in_zip_read_info->pos_in_zipfile =             s->cur_file_info_internal.offset_curfile + SIZEZIPLOCALHEADER + 			  iSizeVar;		pfile_in_zip_read_info->stream.avail_in = (uInt)0;	s->pfile_in_zip_read = pfile_in_zip_read_info;    return UNZ_OK;}/*  Read bytes from the current file.  buf contain buffer where data must be copied  len the size of buf.  return the number of byte copied if somes bytes are copied  return 0 if the end of file was reached  return <0 with error code if there is an error    (UNZ_ERRNO for IO error, or zLib error for uncompress error)*/extern int ZEXPORT unzReadCurrentFile  (file, buf, len)	unzFile file;	voidp buf;	unsigned len;{	int err=UNZ_OK;	uInt iRead = 0;	unz_s* s;	file_in_zip_read_info_s* pfile_in_zip_read_info;	if (file==NULL)		return UNZ_PARAMERROR;	s=(unz_s*)file;    pfile_in_zip_read_info=s->pfile_in_zip_read;	if (pfile_in_zip_read_info==NULL)		return UNZ_PARAMERROR;	if ((pfile_in_zip_read_info->read_buffer == NULL))		return UNZ_END_OF_LIST_OF_FILE;	if (len==0)		return 0;	pfile_in_zip_read_info->stream.next_out = (Bytef*)buf;	pfile_in_zip_read_info->stream.avail_out = (uInt)len;		if (len>pfile_in_zip_read_info->rest_read_uncompressed)		pfile_in_zip_read_info->stream.avail_out = 		  (uInt)pfile_in_zip_read_info->rest_read_uncompressed;	while (pfile_in_zip_read_info->stream.avail_out>0)	{		if ((pfile_in_zip_read_info->stream.avail_in==0) &&            (pfile_in_zip_read_info->rest_read_compressed>0))		{			uInt uReadThis = UNZ_BUFSIZE;			if (pfile_in_zip_read_info->rest_read_compressed<uReadThis)				uReadThis = (uInt)pfile_in_zip_read_info->rest_read_compressed;			if (uReadThis == 0)				return UNZ_EOF;			if (fseek(pfile_in_zip_read_info->file,                      pfile_in_zip_read_info->pos_in_zipfile +                          pfile_in_zip_read_info->byte_before_the_zipfile,SEEK_SET)!=0)				return UNZ_ERRNO;			if (fread(pfile_in_zip_read_info->read_buffer,uReadThis,1,                         pfile_in_zip_read_info->file)!=1)				return UNZ_ERRNO;			pfile_in_zip_read_info->pos_in_zipfile += uReadThis;			pfile_in_zip_read_info->rest_read_compressed-=uReadThis;						pfile_in_zip_read_info->stream.next_in =                 (Bytef*)pfile_in_zip_read_info->read_buffer;			pfile_in_zip_read_info->stream.avail_in = (uInt)uReadThis;		}		if (pfile_in_zip_read_info->compression_method==0)		{			uInt uDoCopy,i ;			if (pfile_in_zip_read_info->stream.avail_out <                             pfile_in_zip_read_info->stream.avail_in)				uDoCopy = pfile_in_zip_read_info->stream.avail_out ;			else				uDoCopy = pfile_in_zip_read_info->stream.avail_in ;							for (i=0;i<uDoCopy;i++)				*(pfile_in_zip_read_info->stream.next_out+i) =                        *(pfile_in_zip_read_info->stream.next_in+i);								pfile_in_zip_read_info->crc32 = crc32(pfile_in_zip_read_info->crc32,								pfile_in_zip_read_info->stream.next_out,								uDoCopy);			pfile_in_zip_read_info->rest_read_uncompressed-=uDoCopy;			pfile_in_zip_read_info->stream.avail_in -= uDoCopy;			pfile_in_zip_read_info->stream.avail_out -= uDoCopy;			pfile_in_zip_read_info->stream.next_out += uDoCopy;			pfile_in_zip_read_info->stream.next_in += uDoCopy;            pfile_in_zip_read_info->stream.total_out += uDoCopy;			iRead += uDoCopy;		}		else		{			uLong uTotalOutBefore,uTotalOutAfter;			const Bytef *bufBefore;			uLong uOutThis;			int flush=Z_SYNC_FLUSH;			uTotalOutBefore = pfile_in_zip_read_info->stream.total_out;			bufBefore = pfile_in_zip_read_info->stream.next_out;			/*			if ((pfile_in_zip_read_info->rest_read_uncompressed ==			         pfile_in_zip_read_info->stream.avail_out) &&				(pfile_in_zip_read_info->rest_read_compressed == 0))				flush = Z_FINISH;			*/			err=inflate(&pfile_in_zip_read_info->stream,flush);			uTotalOutAfter = pfile_in_zip_read_info->stream.total_out;			uOutThis = uTotalOutAfter-uTotalOutBefore;						pfile_in_zip_read_info->crc32 =                 crc32(pfile_in_zip_read_info->crc32,bufBefore,                        (uInt)(uOutThis));			pfile_in_zip_read_info->rest_read_uncompressed -=                uOutThis;			iRead += (uInt)(uTotalOutAfter - uTotalOutBefore);            			if (err==Z_STREAM_END)				return (iRead==0) ? UNZ_EOF : iRead;			if (err!=Z_OK) 				break;		}	}	if (err==Z_OK)		return iRead;	return err;}/*  Give the current position in uncompressed data*/extern z_off_t ZEXPORT unztell (file)	unzFile file;{	unz_s* s;	file_in_zip_read_info_s* pfile_in_zip_read_info;	if (file==NULL)		return UNZ_PARAMERROR;	s=(unz_s*)file;    pfile_in_zip_read_info=s->pfile_in_zip_read;	if (pfile_in_zip_read_info==NULL)		return UNZ_PARAMERROR;	return (z_off_t)pfile_in_zip_read_info->stream.total_out;}/*  return 1 if the end of file was reached, 0 elsewhere */extern int ZEXPORT unzeof (file)	unzFile file;{	unz_s* s;	file_in_zip_read_info_s* pfile_in_zip_read_info;	if (file==NULL)		return UNZ_PARAMERROR;	s=(unz_s*)file;    pfile_in_zip_read_info=s->pfile_in_zip_read;	if (pfile_in_zip_read_info==NULL)		return UNZ_PARAMERROR;		if (pfile_in_zip_read_info->rest_read_uncompressed == 0)		return 1;	else		return 0;}/*  Read extra field from the current file (opened by unzOpenCurrentFile)  This is the local-header version of the extra field (sometimes, there is    more info in the local-header version than in the central-header)  if buf==NULL, it return the size of the local extra field that can be read  if buf!=NULL, len is the size of the buffer, the extra header is copied in	buf.  the return value is the number of bytes copied in buf, or (if <0) 	the error code*/extern int ZEXPORT unzGetLocalExtrafield (file,buf,len)	unzFile file;	voidp buf;	unsigned len;{	unz_s* s;	file_in_zip_read_info_s* pfile_in_zip_read_info;	uInt read_now;	uLong size_to_read;	if (file==NULL)		return UNZ_PARAMERROR;	s=(unz_s*)file;    pfile_in_zip_read_info=s->pfile_in_zip_read;	if (pfile_in_zip_read_info==NULL)		return UNZ_PARAMERROR;	size_to_read = (pfile_in_zip_read_info->size_local_extrafield - 				pfile_in_zip_read_info->pos_local_extrafield);	if (buf==NULL)		return (int)size_to_read;		if (len>size_to_read)		read_now = (uInt)size_to_read;	else		read_now = (uInt)len ;	if (read_now==0)		return 0;		if (fseek(pfile_in_zip_read_info->file,              pfile_in_zip_read_info->offset_local_extrafield + 			  pfile_in_zip_read_info->pos_local_extrafield,SEEK_SET)!=0)		return UNZ_ERRNO;	if (fread(buf,(uInt)size_to_read,1,pfile_in_zip_read_info->file)!=1)		return UNZ_ERRNO;	return (int)read_now;}/*  Close the file in zip opened with unzipOpenCurrentFile  Return UNZ_CRCERROR if all the file was read but the CRC is not good*/extern int ZEXPORT unzCloseCurrentFile (file)	unzFile file;{	int err=UNZ_OK;	unz_s* s;	file_in_zip_read_info_s* pfile_in_zip_read_info;	if (file==NULL)		return UNZ_PARAMERROR;	s=(unz_s*)file;    pfile_in_zip_read_info=s->pfile_in_zip_read;	if (pfile_in_zip_read_info==NULL)		return UNZ_PARAMERROR;	if (pfile_in_zip_read_info->rest_read_uncompressed == 0)	{		if (pfile_in_zip_read_info->crc32 != pfile_in_zip_read_info->crc32_wait)			err=UNZ_CRCERROR;	}	TRYFREE(pfile_in_zip_read_info->read_buffer);	pfile_in_zip_read_info->read_buffer = NULL;	if (pfile_in_zip_read_info->stream_initialised)		inflateEnd(&pfile_in_zip_read_info->stream);	pfile_in_zip_read_info->stream_initialised = 0;	TRYFREE(pfile_in_zip_read_info);    s->pfile_in_zip_read=NULL;	return err;}/*  Get the global comment string of the ZipFile, in the szComment buffer.  uSizeBuf is the size of the szComment buffer.  return the number of byte copied or an error code <0*/extern int ZEXPORT unzGetGlobalComment (file, szComment, uSizeBuf)	unzFile file;	char *szComment;	uLong uSizeBuf;{	int err=UNZ_OK;	unz_s* s;	uLong uReadThis ;	if (file==NULL)		return UNZ_PARAMERROR;	s=(unz_s*)file;	uReadThis = uSizeBuf;	if (uReadThis>s->gi.size_comment)		uReadThis = s->gi.size_comment;	if (fseek(s->file,s->central_pos+22,SEEK_SET)!=0)		return UNZ_ERRNO;	if (uReadThis>0)    {      *szComment='\0';	  if (fread(szComment,(uInt)uReadThis,1,s->file)!=1)		return UNZ_ERRNO;    }	if ((szComment != NULL) && (uSizeBuf > s->gi.size_comment))		*(szComment+s->gi.size_comment)='\0';	return (int)uReadThis;}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲激情图片qvod| 激情图片小说一区| 日本成人中文字幕| 成年人国产精品| 91成人看片片| 日本一区二区三区四区在线视频| 一区二区三区高清| 国产suv精品一区二区三区| 欧美色欧美亚洲另类二区| 国产色一区二区| 日韩国产欧美在线观看| 91香蕉国产在线观看软件| 日韩一区二区三区电影| 亚洲精品乱码久久久久| 国产精品乡下勾搭老头1| 欧美精品在线一区二区| 亚洲日本va午夜在线影院| 国产一区二区调教| 日韩一区和二区| 亚洲自拍另类综合| 91在线免费播放| 国产清纯白嫩初高生在线观看91| 免费日本视频一区| 欧美日韩亚洲国产综合| 国产精品久久久久久久裸模| 六月丁香婷婷久久| 884aa四虎影成人精品一区| 亚洲另类在线视频| 97国产一区二区| 国产精品久久毛片| 国产成a人亚洲精| 久久亚洲影视婷婷| 久草这里只有精品视频| 欧美一区二区三区四区高清| 亚洲成av人片在www色猫咪| 97aⅴ精品视频一二三区| 亚洲手机成人高清视频| 91在线porny国产在线看| 亚洲女同ⅹxx女同tv| 91一区二区在线| 一区二区三区中文免费| 日本二三区不卡| 亚洲成a天堂v人片| 欧美另类高清zo欧美| 婷婷久久综合九色综合绿巨人| 色妞www精品视频| 亚洲自拍偷拍av| 91精品国产91热久久久做人人| 视频一区二区三区在线| 欧美伦理视频网站| 日本不卡一二三| 精品999久久久| 国产一区二区久久| 最新高清无码专区| 在线观看av不卡| 日韩国产精品91| 久久亚洲欧美国产精品乐播| 国产成人精品亚洲777人妖| 国产精品乱码妇女bbbb| 91豆麻精品91久久久久久| 亚洲成av人片一区二区梦乃| 91精品国产综合久久福利| 老司机免费视频一区二区三区| 26uuuu精品一区二区| 99久久伊人精品| 午夜电影久久久| 久久亚洲一区二区三区明星换脸| 9色porny自拍视频一区二区| 亚洲国产另类av| 亚洲精品一区二区三区影院 | 欧美性猛交xxxx乱大交退制版| 亚洲第一狼人社区| 精品成人一区二区三区四区| 成人av网址在线观看| 午夜精品一区在线观看| 久久精品人人爽人人爽| 在线亚洲一区观看| 精品亚洲成av人在线观看| 亚洲欧美日韩国产手机在线| 欧美一区二区黄| 91在线国产福利| 久久国产剧场电影| 亚洲综合色噜噜狠狠| 久久久国产午夜精品| 久久午夜电影网| 色婷婷激情久久| 国产在线日韩欧美| 午夜精品久久久久久久99樱桃| 精品国产伦理网| 欧美一a一片一级一片| 国产成人8x视频一区二区| 五月天一区二区| 亚洲人成小说网站色在线| 这里只有精品视频在线观看| 成人黄色一级视频| 国模一区二区三区白浆| 亚洲综合免费观看高清在线观看| 久久九九久久九九| 欧美一区二区三区视频| 在线精品视频免费播放| 丁香五精品蜜臀久久久久99网站 | 国产一区二区三区国产| 性久久久久久久久久久久| 中文乱码免费一区二区| 精品国产sm最大网站免费看| 欧美猛男超大videosgay| 99re在线精品| 成人激情动漫在线观看| 国产一区二区电影| 日本在线不卡一区| 亚洲国产毛片aaaaa无费看| 亚洲视频一区二区免费在线观看| 国产亚洲精品超碰| 亚洲精品一区二区三区精华液 | 久久久精品人体av艺术| 欧美精品第1页| 欧美视频在线观看一区二区| 99视频超级精品| 成人午夜在线免费| 国产 欧美在线| 国产激情一区二区三区| 国产伦理精品不卡| 国产一区二区在线视频| 国产精品系列在线观看| 高清不卡在线观看av| 国产福利精品一区| 丁香婷婷综合激情五月色| 国产成人aaa| 99精品国产热久久91蜜凸| 99r国产精品| 欧洲在线/亚洲| 7777女厕盗摄久久久| 日韩欧美一级在线播放| 2023国产精品| 国产日韩欧美高清| 亚洲欧洲日韩在线| 亚洲激情六月丁香| 天天综合网 天天综合色| 日本午夜一区二区| 国产一区二区成人久久免费影院| 国产成人综合在线| 91亚洲精品一区二区乱码| 在线观看精品一区| 欧美一区二区久久| 国产欧美日韩三区| 一级精品视频在线观看宜春院| 亚洲综合视频在线观看| 强制捆绑调教一区二区| 国产成人亚洲综合a∨猫咪| 91在线视频在线| 欧美理论片在线| 久久久高清一区二区三区| 亚洲人xxxx| 日本亚洲欧美天堂免费| 福利一区福利二区| 在线一区二区三区做爰视频网站| 欧美精品日韩一区| 国产欧美综合在线观看第十页| 一区二区三区欧美| 国内精品久久久久影院色| 成人av在线播放网站| 777奇米四色成人影色区| 亚洲国产成人在线| 亚洲v精品v日韩v欧美v专区| 国产福利一区在线| 欧美区视频在线观看| 久久久久国色av免费看影院| 亚洲一区二区在线免费看| 狠狠色狠狠色综合日日91app| 91在线观看美女| 精品日韩在线一区| 亚洲国产综合视频在线观看| 国产精品小仙女| 欧美一区二区性放荡片| 国产精品久久国产精麻豆99网站| 日韩av二区在线播放| 91一区一区三区| 国产人妖乱国产精品人妖| 日韩福利视频导航| 欧洲一区二区av| 国产精品久久久久精k8| 国产一区欧美日韩| 欧美一区二区三区色| 亚洲成av人**亚洲成av**| av色综合久久天堂av综合| 久久久av毛片精品| 久久精品国产精品亚洲综合| 欧美日韩午夜精品| 亚洲综合色区另类av| 91在线一区二区三区| 欧美激情自拍偷拍| 国产精品综合av一区二区国产馆| 欧美精品久久一区二区三区| 亚洲乱码国产乱码精品精的特点| 成人综合在线观看| 国产视频亚洲色图| 国产成人免费在线观看| 久久久不卡网国产精品一区| 国模无码大尺度一区二区三区| 日韩视频一区二区三区|