293 16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15};
295 3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31,
296 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258, 0, 0};
299 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2,
300 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0, 99, 99};
302 1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193,
303 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145,
304 8193, 12289, 16385, 24577};
306 0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6,
307 7, 7, 8, 8, 9, 9, 10, 10, 11, 11,
313 0x0001, 0x0003, 0x0007, 0x000f, 0x001f, 0x003f, 0x007f, 0x00ff,
314 0x01ff, 0x03ff, 0x07ff, 0x0fff, 0x1fff, 0x3fff, 0x7fff, 0xffff
623int R__Inflate_codes(
struct huft *tl,
struct huft *td,
int bl,
int bd,
uch** ibufptr,
long* ibufcnt,
uch** obufptr,
long* obufcnt,
ulg* bb,
unsigned* bk,
uch* R__slide,
unsigned* wp)
649 NEEDBITS((
unsigned)bl,
b,k,(*ibufptr),(*ibufcnt))
650 if ((
e = (
t = tl + ((
unsigned)
b &
ml))->
e) > 16)
657 }
while ((
e = (
t =
t->v.t + ((
unsigned)
b &
mask[
e]))->e) > 16);
661 R__slide[w++] = (
uch)
t->v.n;
664 FLUSH(w,obufptr,obufcnt,R__slide);
676 n =
t->v.n + ((unsigned)
b &
mask[
e]);
680 NEEDBITS((
unsigned)bd,
b,k,(*ibufptr),(*ibufcnt))
681 if ((
e = (
t = td + ((
unsigned)
b & md))->
e) > 16)
688 }
while ((
e = (
t =
t->v.t + ((
unsigned)
b &
mask[
e]))->e) > 16);
691 d = w -
t->v.n - ((unsigned)
b &
mask[
e]);
700 memcpy(R__slide + w, R__slide +
d,
e);
707 R__slide[w++] = R__slide[
d++];
711 FLUSH(w,obufptr,obufcnt,R__slide);
743 Trace((stderr,
"\nstored block"));
756 n = ((unsigned)
b & 0xffff);
759 if (
n != (
unsigned)((~
b) & 0xffff))
768 R__slide[w++] = (
uch)
b;
771 FLUSH(w,obufptr,obufcnt,R__slide);
854#ifdef PKZIP_BUG_WORKAROUND
864 Trace((stderr,
"\ndynamic block"));
871 nl = 257 + ((unsigned)
b & 0x1f);
874 nd = 1 + ((unsigned)
b & 0x1f);
877 nb = 4 + ((unsigned)
b & 0xf);
879#ifdef PKZIP_BUG_WORKAROUND
880 if (nl > 288 || nd > 32)
882 if (nl > 286 || nd > 30)
888 for (j = 0; j < nb; j++)
891 ll[
border[j]] = (unsigned)
b & 7;
912 while ((
unsigned)i <
n)
914 NEEDBITS((
unsigned)bl,
b,k,(*ibufptr),(*ibufcnt))
915 j = (td = tl + ((unsigned)
b &
m))->
b;
923 j = 3 + ((unsigned)
b & 3);
925 if ((
unsigned)i + j >
n)
933 j = 3 + ((unsigned)
b & 7);
935 if ((
unsigned)i + j >
n)
944 j = 11 + ((unsigned)
b & 0x7f);
946 if ((
unsigned)i + j >
n)
968 if (i == 1 && !
qflag) {
969 FPRINTF(stderr,
"(incomplete l-tree) ");
977 if (i == 1 && !
qflag) {
978 FPRINTF(stderr,
"(incomplete d-tree) ");
979#ifdef PKZIP_BUG_WORKAROUND
992 if (
R__Inflate_codes(tl, td, bl, bd, ibufptr, ibufcnt, obufptr, obufcnt, bb, bk, R__slide, wp))
1010 register unsigned k;
1026 t = (unsigned)
b & 3;
1041 return R__Inflate_fixed(ibufptr,ibufcnt,obufptr,obufcnt,bb,bk,R__slide,wp,hufts);
1068 uch R__slide [32768];
1075 if ((
r =
R__Inflate_block(&
e, ibufptr, ibufcnt, obufptr, obufcnt, &bb, &bk, R__slide, &wp, &hufts)) != 0)
1083 FLUSH(wp,obufptr,obufcnt,R__slide);
1087 Trace((stderr,
"\n%u bytes in Huffman tables (%d/entry)\n",
1088 h *
sizeof(
struct huft),
sizeof(
struct huft)));
int R__Inflate(uch **ibufptr, long *ibufcnt, uch **obufptr, long *obufcnt)
Decompress a deflated entry.