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

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

?? infcodes.c

?? 一個delphi下壓縮成zip文件的例子
?? C
字號:
/* infcodes.c -- process literals and length/distance pairs
 * Copyright (C) 1995-1996 Mark Adler
 * For conditions of distribution and use, see copyright notice in zlib.h 
 */

#include "zutil.h"
#include "inftrees.h"
#include "infblock.h"
#include "infcodes.h"
#include "infutil.h"
#include "inffast.h"

/* simplify the use of the inflate_huft type with some defines */
#define base more.Base
#define next more.Next
#define exop word.what.Exop
#define bits word.what.Bits

/* inflate codes private state */
struct inflate_codes_state {

  /* mode */
  enum {        /* waiting for "i:"=input, "o:"=output, "x:"=nothing */
      START,    /* x: set up for LEN */
      LEN,      /* i: get length/literal/eob next */
      LENEXT,   /* i: getting length extra (have base) */
      DIST,     /* i: get distance next */
      DISTEXT,  /* i: getting distance extra */
      COPY,     /* o: copying bytes in window, waiting for space */
      LIT,      /* o: got literal, waiting for output space */
      WASH,     /* o: got eob, possibly still output waiting */
      END,      /* x: got eob and all data flushed */
      BADCODE}  /* x: got error */
    mode;               /* current inflate_codes mode */

  /* mode dependent information */
  uInt len;
  union {
    struct {
      inflate_huft *tree;       /* pointer into tree */
      uInt need;                /* bits needed */
    } code;             /* if LEN or DIST, where in tree */
    uInt lit;           /* if LIT, literal */
    struct {
      uInt get;                 /* bits to get for extra */
      uInt dist;                /* distance back to copy from */
    } copy;             /* if EXT or COPY, where and how much */
  } sub;                /* submode */

  /* mode independent information */
  Byte lbits;           /* ltree bits decoded per branch */
  Byte dbits;           /* dtree bits decoder per branch */
  inflate_huft *ltree;          /* literal/length/eob tree */
  inflate_huft *dtree;          /* distance tree */

};


inflate_codes_statef *inflate_codes_new(bl, bd, tl, td, z)
uInt bl, bd;
inflate_huft *tl;
inflate_huft *td; /* need separate declaration for Borland C++ */
z_streamp z;
{
  inflate_codes_statef *c;

  if ((c = (inflate_codes_statef *)
       ZALLOC(z,1,sizeof(struct inflate_codes_state))) != Z_NULL)
  {
    c->mode = START;
    c->lbits = (Byte)bl;
    c->dbits = (Byte)bd;
    c->ltree = tl;
    c->dtree = td;
    Tracev((stderr, "inflate:       codes new\n"));
  }
  return c;
}


int inflate_codes(s, z, r)
inflate_blocks_statef *s;
z_streamp z;
int r;
{
  uInt j;               /* temporary storage */
  inflate_huft *t;      /* temporary pointer */
  uInt e;               /* extra bits or operation */
  uLong b;              /* bit buffer */
  uInt k;               /* bits in bit buffer */
  Bytef *p;             /* input data pointer */
  uInt n;               /* bytes available there */
  Bytef *q;             /* output window write pointer */
  uInt m;               /* bytes to end of window or read pointer */
  Bytef *f;             /* pointer to copy strings from */
  inflate_codes_statef *c = s->sub.decode.codes;  /* codes state */

  /* copy input/output information to locals (UPDATE macro restores) */
  LOAD

  /* process input and output based on current state */
  while (1) switch (c->mode)
  {             /* waiting for "i:"=input, "o:"=output, "x:"=nothing */
    case START:         /* x: set up for LEN */
#ifndef SLOW
      if (m >= 258 && n >= 10)
      {
        UPDATE
        r = inflate_fast(c->lbits, c->dbits, c->ltree, c->dtree, s, z);
        LOAD
        if (r != Z_OK)
        {
          c->mode = r == Z_STREAM_END ? WASH : BADCODE;
          break;
        }
      }
#endif /* !SLOW */
      c->sub.code.need = c->lbits;
      c->sub.code.tree = c->ltree;
      c->mode = LEN;
    case LEN:           /* i: get length/literal/eob next */
      j = c->sub.code.need;
      NEEDBITS(j)
      t = c->sub.code.tree + ((uInt)b & inflate_mask[j]);
      DUMPBITS(t->bits)
      e = (uInt)(t->exop);
      if (e == 0)               /* literal */
      {
        c->sub.lit = t->base;
        Tracevv((stderr, t->base >= 0x20 && t->base < 0x7f ?
                 "inflate:         literal '%c'\n" :
                 "inflate:         literal 0x%02x\n", t->base));
        c->mode = LIT;
        break;
      }
      if (e & 16)               /* length */
      {
        c->sub.copy.get = e & 15;
        c->len = t->base;
        c->mode = LENEXT;
        break;
      }
      if ((e & 64) == 0)        /* next table */
      {
        c->sub.code.need = e;
        c->sub.code.tree = t->next;
        break;
      }
      if (e & 32)               /* end of block */
      {
        Tracevv((stderr, "inflate:         end of block\n"));
        c->mode = WASH;
        break;
      }
      c->mode = BADCODE;        /* invalid code */
      z->msg = (char*)"invalid literal/length code";
      r = Z_DATA_ERROR;
      LEAVE
    case LENEXT:        /* i: getting length extra (have base) */
      j = c->sub.copy.get;
      NEEDBITS(j)
      c->len += (uInt)b & inflate_mask[j];
      DUMPBITS(j)
      c->sub.code.need = c->dbits;
      c->sub.code.tree = c->dtree;
      Tracevv((stderr, "inflate:         length %u\n", c->len));
      c->mode = DIST;
    case DIST:          /* i: get distance next */
      j = c->sub.code.need;
      NEEDBITS(j)
      t = c->sub.code.tree + ((uInt)b & inflate_mask[j]);
      DUMPBITS(t->bits)
      e = (uInt)(t->exop);
      if (e & 16)               /* distance */
      {
        c->sub.copy.get = e & 15;
        c->sub.copy.dist = t->base;
        c->mode = DISTEXT;
        break;
      }
      if ((e & 64) == 0)        /* next table */
      {
        c->sub.code.need = e;
        c->sub.code.tree = t->next;
        break;
      }
      c->mode = BADCODE;        /* invalid code */
      z->msg = (char*)"invalid distance code";
      r = Z_DATA_ERROR;
      LEAVE
    case DISTEXT:       /* i: getting distance extra */
      j = c->sub.copy.get;
      NEEDBITS(j)
      c->sub.copy.dist += (uInt)b & inflate_mask[j];
      DUMPBITS(j)
      Tracevv((stderr, "inflate:         distance %u\n", c->sub.copy.dist));
      c->mode = COPY;
    case COPY:          /* o: copying bytes in window, waiting for space */
#ifndef __TURBOC__ /* Turbo C bug for following expression */
      f = (uInt)(q - s->window) < c->sub.copy.dist ?
          s->end - (c->sub.copy.dist - (q - s->window)) :
          q - c->sub.copy.dist;
#else
      f = q - c->sub.copy.dist;
      if ((uInt)(q - s->window) < c->sub.copy.dist)
        f = s->end - (c->sub.copy.dist - (uInt)(q - s->window));
#endif
      while (c->len)
      {
        NEEDOUT
        OUTBYTE(*f++)
        if (f == s->end)
          f = s->window;
        c->len--;
      }
      c->mode = START;
      break;
    case LIT:           /* o: got literal, waiting for output space */
      NEEDOUT
      OUTBYTE(c->sub.lit)
      c->mode = START;
      break;
    case WASH:          /* o: got eob, possibly more output */
      FLUSH
      if (s->read != s->write)
        LEAVE
      c->mode = END;
    case END:
      r = Z_STREAM_END;
      LEAVE
    case BADCODE:       /* x: got error */
      r = Z_DATA_ERROR;
      LEAVE
    default:
      r = Z_STREAM_ERROR;
      LEAVE
  }
}


void inflate_codes_free(c, z)
inflate_codes_statef *c;
z_streamp z;
{
  ZFREE(z, c);
  Tracev((stderr, "inflate:       codes free\n"));
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品丝袜在线| 欧美精品一区二区三区蜜桃视频 | 一本高清dvd不卡在线观看| 韩国视频一区二区| 精品一区二区在线看| 麻豆精品视频在线观看视频| 日本免费新一区视频| 日韩电影在线看| 久久国产尿小便嘘嘘| 国产一区二区成人久久免费影院| 91麻豆精品一区二区三区| 91在线国产观看| 91麻豆精东视频| 欧美色倩网站大全免费| 91精品免费观看| 精品国产乱码久久久久久闺蜜| 26uuu亚洲婷婷狠狠天堂| 久久青草欧美一区二区三区| 国产精品女同互慰在线看| 亚洲欧美另类久久久精品 | 欧美亚洲国产一区二区三区va| 色妞www精品视频| 欧美精品久久99久久在免费线| 欧美一区午夜视频在线观看| 久久久99久久| 国产一区二区福利| 色婷婷亚洲精品| 在线成人免费视频| 久久精品亚洲国产奇米99| 亚洲嫩草精品久久| 蜜芽一区二区三区| aa级大片欧美| 日韩午夜av一区| 亚洲精品免费在线| 激情欧美一区二区| 日本二三区不卡| 亚洲精品一区二区精华| 亚洲一二三四久久| 国产精品99久久不卡二区| 欧美色综合网站| 久久久99精品免费观看不卡| 国产91色综合久久免费分享| 制服视频三区第一页精品| 国产亚洲欧美日韩俺去了| 亚洲第一福利视频在线| av男人天堂一区| 日韩亚洲欧美一区二区三区| 亚洲精品国产a| 成人爽a毛片一区二区免费| 欧美一级日韩不卡播放免费| 亚洲夂夂婷婷色拍ww47 | 在线亚洲免费视频| 久久人人超碰精品| 日韩精品一区第一页| 91亚洲精品久久久蜜桃网站| 久久九九全国免费| 成人99免费视频| 26uuu亚洲综合色欧美| 日韩电影在线观看一区| 欧美视频你懂的| 伊人性伊人情综合网| jlzzjlzz欧美大全| 国产精品美女久久福利网站| 国产乱国产乱300精品| 日韩欧美国产三级电影视频| 五月婷婷色综合| 欧美伊人久久久久久久久影院| 国产精品免费丝袜| 成人一级片网址| 国产欧美日韩激情| 高清视频一区二区| 欧美韩日一区二区三区四区| 国产一区 二区 三区一级| 国产精品天干天干在观线| 国产成人精品影院| 国产精品三级在线观看| 国产a区久久久| 一区二区中文视频| 91福利资源站| 亚洲sss视频在线视频| 欧美日韩高清不卡| 日韩精品午夜视频| 欧美不卡视频一区| 国产精品中文字幕日韩精品| 国产日韩欧美一区二区三区综合| 国产成人午夜精品影院观看视频| 久久久蜜桃精品| 成人免费视频免费观看| 国产精品久久久久aaaa樱花 | 972aa.com艺术欧美| 亚洲欧美偷拍卡通变态| 欧美写真视频网站| 秋霞影院一区二区| 久久综合av免费| 成人久久18免费网站麻豆| 亚洲欧美日韩成人高清在线一区| 91国内精品野花午夜精品| 日韩精品视频网| 久久久久国色av免费看影院| av资源站一区| 日本中文字幕一区二区视频| 久久久国产精华| 日本韩国精品在线| 裸体一区二区三区| 精品中文字幕一区二区小辣椒| xfplay精品久久| 91久久国产综合久久| 美女脱光内衣内裤视频久久网站| 日本一区二区三区视频视频| 欧美中文字幕一二三区视频| 国产一区美女在线| 亚洲国产精品一区二区www在线 | 欧美综合亚洲图片综合区| 日韩激情av在线| 一区在线中文字幕| 精品久久久久久综合日本欧美| 99国内精品久久| 美女mm1313爽爽久久久蜜臀| 亚洲色图一区二区三区| 精品精品欲导航| 精品国产91亚洲一区二区三区婷婷| 午夜视频一区二区| 欧美一卡二卡三卡| 99久久精品国产观看| 久久国产视频网| 樱花草国产18久久久久| 久久久久久久综合狠狠综合| 欧美日韩综合在线| 成人综合在线观看| 一区二区激情小说| 91丨porny丨蝌蚪视频| 成人黄色在线网站| 91国内精品野花午夜精品| 7777精品伊人久久久大香线蕉经典版下载 | 亚洲图片欧美色图| 日韩精品成人一区二区三区| 久久se精品一区二区| 从欧美一区二区三区| 色八戒一区二区三区| 欧美精品国产精品| 久久综合色8888| 亚洲丝袜另类动漫二区| 亚洲123区在线观看| 国产乱对白刺激视频不卡| 一本久道中文字幕精品亚洲嫩| 91精品国产高清一区二区三区| 午夜激情一区二区三区| 国产一区二区三区四区五区入口| 成人av电影在线播放| 欧美一区二区三区四区久久| 欧美韩国日本不卡| 天堂精品中文字幕在线| 高清beeg欧美| 91麻豆精品国产自产在线| 欧美国产乱子伦| 日韩中文字幕区一区有砖一区 | 在线中文字幕不卡| 欧美sm极限捆绑bd| 亚洲精品综合在线| 精品一区二区久久| 在线一区二区三区四区五区 | 全国精品久久少妇| 成人黄色免费短视频| 欧美一区二区播放| 亚洲精品日日夜夜| 粗大黑人巨茎大战欧美成人| 欧美妇女性影城| 亚洲日本在线天堂| 国产在线日韩欧美| 欧美日韩免费高清一区色橹橹| 欧美国产成人精品| 久久国产免费看| 欧美精品一级二级| 一区二区三区高清在线| 成人免费毛片a| 久久久一区二区| 免费xxxx性欧美18vr| 欧美日韩国产综合视频在线观看 | 天天射综合影视| 色综合久久中文字幕| 国产欧美精品一区二区色综合 | 精品国内片67194| 视频一区欧美精品| 日本道色综合久久| ...中文天堂在线一区| 国产.精品.日韩.另类.中文.在线.播放 | 色先锋资源久久综合| 中文字幕欧美激情一区| 国产在线一区观看| 欧美精品一区二区久久婷婷| 七七婷婷婷婷精品国产| 欧美肥妇free| 丁香激情综合国产| 久久久影院官网| 国产麻豆精品在线| 国产日产精品一区| 国产成人免费在线观看不卡| 26uuu亚洲| 国产99久久精品| 亚洲国产高清aⅴ视频|