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

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

?? unzip.c

?? 一個本地database引擎,支持中文T_Sql查詢,兼容DELPHI標準數據庫控件
?? C
?? 第 1 頁 / 共 4 頁
字號:
{
    return unzOpenCurrentFile3(file, NULL, NULL, 0, password);
}

extern int ZEXPORT unzOpenCurrentFile2 (file,method,level,raw)
    unzFile file;
    int* method;
    int* level;
    int raw;
{
    return unzOpenCurrentFile3(file, method, level, raw, NULL);
}

/*
  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->raw)))
        pfile_in_zip_read_info->stream.avail_out =
            (uInt)pfile_in_zip_read_info->rest_read_uncompressed;

    if ((len>pfile_in_zip_read_info->rest_read_compressed+
           pfile_in_zip_read_info->stream.avail_in) &&
         (pfile_in_zip_read_info->raw))
        pfile_in_zip_read_info->stream.avail_out =
            (uInt)pfile_in_zip_read_info->rest_read_compressed+
            pfile_in_zip_read_info->stream.avail_in;

    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 (ZSEEK(pfile_in_zip_read_info->z_filefunc,
                      pfile_in_zip_read_info->filestream,
                      pfile_in_zip_read_info->pos_in_zipfile +
                         pfile_in_zip_read_info->byte_before_the_zipfile,
                         ZLIB_FILEFUNC_SEEK_SET)!=0)
                return UNZ_ERRNO;
            if (ZREAD(pfile_in_zip_read_info->z_filefunc,
                      pfile_in_zip_read_info->filestream,
                      pfile_in_zip_read_info->read_buffer,
                      uReadThis)!=uReadThis)
                return UNZ_ERRNO;


#            ifndef NOUNCRYPT
            if(s->encrypted)
            {
                uInt i;
                for(i=0;i<uReadThis;i++)
                  pfile_in_zip_read_info->read_buffer[i] =
                      zdecode(s->keys,s->pcrc_32_tab,
                              pfile_in_zip_read_info->read_buffer[i]);
            }
#            endif


            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) || (pfile_in_zip_read_info->raw))
        {
            uInt uDoCopy,i ;

            if ((pfile_in_zip_read_info->stream.avail_in == 0) &&
                (pfile_in_zip_read_info->rest_read_compressed == 0))
                return (iRead==0) ? UNZ_EOF : iRead;

            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);

            if ((err>=0) && (pfile_in_zip_read_info->stream.msg!=NULL))
              err = Z_DATA_ERROR;

            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 (ZSEEK(pfile_in_zip_read_info->z_filefunc,
              pfile_in_zip_read_info->filestream,
              pfile_in_zip_read_info->offset_local_extrafield +
              pfile_in_zip_read_info->pos_local_extrafield,
              ZLIB_FILEFUNC_SEEK_SET)!=0)
        return UNZ_ERRNO;

    if (ZREAD(pfile_in_zip_read_info->z_filefunc,
              pfile_in_zip_read_info->filestream,
              buf,read_now)!=read_now)
        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) &&
        (!pfile_in_zip_read_info->raw))
    {
        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 (ZSEEK(s->z_filefunc,s->filestream,s->central_pos+22,ZLIB_FILEFUNC_SEEK_SET)!=0)
        return UNZ_ERRNO;

    if (uReadThis>0)
    {
      *szComment='\0';
      if (ZREAD(s->z_filefunc,s->filestream,szComment,uReadThis)!=uReadThis)
        return UNZ_ERRNO;
    }

    if ((szComment != NULL) && (uSizeBuf > s->gi.size_comment))
        *(szComment+s->gi.size_comment)='\0';
    return (int)uReadThis;
}

/* Additions by RX '2004 */
extern uLong ZEXPORT unzGetOffset (file)
    unzFile file;
{
    unz_s* s;

    if (file==NULL)
          return UNZ_PARAMERROR;
    s=(unz_s*)file;
    if (!s->current_file_ok)
      return 0;
    if (s->gi.number_entry != 0 && s->gi.number_entry != 0xffff)
      if (s->num_file==s->gi.number_entry)
         return 0;
    return s->pos_in_central_dir;
}

extern int ZEXPORT unzSetOffset (file, pos)
        unzFile file;
        uLong pos;
{
    unz_s* s;
    int err;

    if (file==NULL)
        return UNZ_PARAMERROR;
    s=(unz_s*)file;

    s->pos_in_central_dir = pos;
    s->num_file = s->gi.number_entry;      /* hack */
    err = unzlocal_GetCurrentFileInfoInternal(file,&s->cur_file_info,
                                              &s->cur_file_info_internal,
                                              NULL,0,NULL,0,NULL,0);
    s->current_file_ok = (err == UNZ_OK);
    return err;
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91免费观看国产| 欧美精品三级日韩久久| 亚洲午夜私人影院| 久久精品一区八戒影视| 欧美日韩高清影院| proumb性欧美在线观看| 精品亚洲porn| 亚洲bt欧美bt精品| 国产精品久久久久久久久搜平片| 91精品在线麻豆| 91小视频免费看| 成人一区二区三区| 久久se这里有精品| 日韩黄色片在线观看| 亚洲另类在线一区| 国产色产综合产在线视频| 欧美一区二区三区在| 欧美日韩一区二区三区在线 | 国产麻豆精品theporn| 亚洲精品免费电影| 国产精品国模大尺度视频| 久久嫩草精品久久久精品| 日韩一区二区三区精品视频| 欧美日韩精品久久久| 色婷婷亚洲婷婷| 色国产综合视频| 91理论电影在线观看| 99久久99久久精品免费观看| 国产成人免费av在线| 欧美体内she精高潮| 成人激情黄色小说| 国产成人在线网站| 国产精品一二一区| 国产精品系列在线观看| 国产精品亚洲一区二区三区在线| 奇米影视7777精品一区二区| 视频一区视频二区中文| 天天综合色天天综合色h| 亚洲第一精品在线| 日韩国产欧美三级| 蜜臀av一区二区在线观看| 男女男精品网站| 久久机这里只有精品| 麻豆国产欧美日韩综合精品二区| 美日韩黄色大片| 黄色日韩三级电影| 国产精品一二一区| 99re在线视频这里只有精品| av亚洲精华国产精华精| 91国内精品野花午夜精品 | 成人性视频免费网站| 国产成人免费高清| 99精品热视频| 91福利精品视频| 在线电影欧美成精品| 精品国产一区二区三区四区四| 精品福利二区三区| 亚洲欧洲99久久| 亚洲国产日韩a在线播放| 男人操女人的视频在线观看欧美| 另类小说图片综合网| 国产精品一线二线三线精华| 99久久久国产精品| 欧美日韩精品一区二区天天拍小说| 欧美男男青年gay1069videost| 欧美一区二区三区四区在线观看 | 一本到一区二区三区| 欧美日韩免费一区二区三区 | 亚洲黄色小视频| 日本一不卡视频| 91精品福利视频| 欧美伦理影视网| 久久精品夜夜夜夜久久| 亚洲欧美另类在线| 男男gaygay亚洲| 99国产精品一区| 777a∨成人精品桃花网| 久久久精品国产99久久精品芒果| 成人欧美一区二区三区1314| 日本成人在线网站| 国产成人精品影视| 欧美日韩激情一区二区三区| 久久久久久久国产精品影院| 亚洲资源中文字幕| 国产原创一区二区三区| 99精品偷自拍| 精品av综合导航| 亚洲一区二区美女| 国产.精品.日韩.另类.中文.在线.播放| 色爱区综合激月婷婷| 精品国产一区二区三区久久久蜜月| 亚洲视频综合在线| 久色婷婷小香蕉久久| 91猫先生在线| 久久久美女毛片| 午夜久久久久久久久| 成人教育av在线| 精品剧情v国产在线观看在线| 亚洲欧洲精品一区二区三区不卡 | 99re这里只有精品首页| 欧美一级片在线看| 依依成人精品视频| 懂色av一区二区三区免费看| 日韩一区二区在线观看视频| 亚洲黄色免费电影| a亚洲天堂av| 国产婷婷精品av在线| 免费三级欧美电影| 欧美日韩另类一区| 亚洲嫩草精品久久| 成人av网址在线| 中文字幕不卡的av| 国产主播一区二区| 精品久久久久久亚洲综合网| 午夜精品福利一区二区蜜股av| 91在线观看免费视频| 欧美韩国日本不卡| 国产精品亚洲专一区二区三区 | 国产女人aaa级久久久级| 久久精品国产秦先生| 欧美一区中文字幕| 性做久久久久久免费观看| 欧美中文字幕不卡| 精品午夜一区二区三区在线观看| 91麻豆精品国产91久久久使用方法| 一区二区三区日韩| thepron国产精品| 亚洲天堂成人在线观看| 成人aaaa免费全部观看| 日本一区二区综合亚洲| 国产露脸91国语对白| 久久这里都是精品| 国产在线一区二区综合免费视频| 精品国产乱码久久久久久影片| 久久国产免费看| 2017欧美狠狠色| 国产风韵犹存在线视精品| 久久综合久久99| 国产乱子轮精品视频| 欧美激情在线免费观看| 成人app下载| 亚洲精品成人悠悠色影视| 欧美最猛性xxxxx直播| 亚洲va欧美va国产va天堂影院| 欧美视频日韩视频| 日韩不卡一区二区| 精品国产在天天线2019| 国产成人综合在线| 亚洲丝袜自拍清纯另类| 欧美日韩中文另类| 日本aⅴ免费视频一区二区三区| 日韩一区二区在线观看视频播放| 国产一区视频导航| 中文字幕一区二区三区在线观看 | 亚洲一区二区三区爽爽爽爽爽| 欧美日韩精品一区二区| 久久 天天综合| 国产精品视频yy9299一区| 在线精品视频免费播放| 午夜视频在线观看一区二区三区| 欧美一区二区大片| 国产精品一区二区在线观看不卡| 亚洲欧美在线高清| 91精品国产黑色紧身裤美女| 久久99精品久久久久久动态图| 中文欧美字幕免费| 欧美午夜视频网站| 精品一区二区免费视频| 中文av字幕一区| 欧美精品亚洲二区| 国产v日产∨综合v精品视频| 亚洲自拍偷拍av| 久久综合久久鬼色中文字| 91视频免费播放| 精品在线免费观看| 亚洲免费在线观看视频| 欧美va亚洲va| 91在线无精精品入口| 蜜臀久久久99精品久久久久久| 日本一区二区电影| 51精品秘密在线观看| 94-欧美-setu| 激情文学综合网| 亚洲高清视频中文字幕| 久久精品亚洲乱码伦伦中文| 欧美亚一区二区| 成人黄色国产精品网站大全在线免费观看| 亚洲香肠在线观看| 亚洲国产精品二十页| 91精品国产麻豆国产自产在线| 93久久精品日日躁夜夜躁欧美| 蜜臀av性久久久久蜜臀aⅴ四虎| 自拍偷拍亚洲综合| 久久影院午夜论| 91麻豆精品国产91久久久更新时间| 99久久99久久免费精品蜜臀| 国产一区二区调教| 奇米777欧美一区二区| 一区二区三区欧美久久| 欧美国产一区在线|