ReactOS  0.4.13-dev-92-gf251225
inflate.c File Reference
#include "zutil.h"
#include "infblock.h"
Include dependency graph for inflate.c:

Go to the source code of this file.

Classes

struct  internal_state
 

Macros

#define DONE   INFLATE_DONE
 
#define BAD   INFLATE_BAD
 
#define NEEDBYTE   {if(z->avail_in==0)return r;r=f;}
 
#define NEXTBYTE   (z->avail_in--,z->total_in++,*z->next_in++)
 

Enumerations

enum  inflate_mode {
  METHOD, FLAG, DICT4, DICT3,
  DICT2, DICT1, DICT0, BLOCKS,
  CHECK4, CHECK3, CHECK2, CHECK1,
  DONE, BAD, HEAD = 16180, FLAGS,
  TIME, OS, EXLEN, EXTRA,
  NAME, COMMENT, HCRC, DICTID,
  DICT, TYPE, TYPEDO, STORED,
  COPY_, COPY, TABLE, LENLENS,
  CODELENS, LEN_, LEN, LENEXT,
  DIST, DISTEXT, MATCH, LIT,
  CHECK, LENGTH, DONE, BAD,
  MEM, SYNC
}
 

Functions

 ZEXPORT (int)
 

Macro Definition Documentation

◆ BAD

#define BAD   INFLATE_BAD

Definition at line 10 of file inflate.c.

◆ DONE

#define DONE   INFLATE_DONE

Definition at line 9 of file inflate.c.

◆ NEEDBYTE

#define NEEDBYTE   {if(z->avail_in==0)return r;r=f;}

Definition at line 141 of file inflate.c.

◆ NEXTBYTE

#define NEXTBYTE   (z->avail_in--,z->total_in++,*z->next_in++)

Definition at line 144 of file inflate.c.

Enumeration Type Documentation

◆ inflate_mode

Enumerator
METHOD 
FLAG 
DICT4 
DICT3 
DICT2 
DICT1 
DICT0 
BLOCKS 
CHECK4 
CHECK3 
CHECK2 
CHECK1 
DONE 
BAD 
HEAD 
FLAGS 
TIME 
OS 
EXLEN 
EXTRA 
NAME 
COMMENT 
HCRC 
DICTID 
DICT 
TYPE 
TYPEDO 
STORED 
COPY_ 
COPY 
TABLE 
LENLENS 
CODELENS 
LEN_ 
LEN 
LENEXT 
DIST 
DISTEXT 
MATCH 
LIT 
CHECK 
LENGTH 
DONE 
BAD 
MEM 
SYNC 

Definition at line 12 of file inflate.c.

12  {
13  METHOD, /* waiting for method byte */
14  FLAG, /* waiting for flag byte */
15  DICT4, /* four dictionary check bytes to go */
16  DICT3, /* three dictionary check bytes to go */
17  DICT2, /* two dictionary check bytes to go */
18  DICT1, /* one dictionary check byte to go */
19  DICT0, /* waiting for inflateSetDictionary */
20  BLOCKS, /* decompressing blocks */
21  CHECK4, /* four check bytes to go */
22  CHECK3, /* three check bytes to go */
23  CHECK2, /* two check bytes to go */
24  CHECK1, /* one check byte to go */
25  DONE, /* finished check, done */
26  BAD} /* got an error--stay here */
Definition: inflate.c:23
#define DONE
Definition: inflate.c:9
Definition: inflate.c:21
Definition: inflate.c:15
Definition: inflate.c:18
Definition: inflate.c:22
#define BAD
Definition: inflate.c:10
Definition: inflate.c:17
Definition: inflate.c:13
Definition: inflate.c:19
Definition: inflate.c:24
Definition: inflate.c:20
Definition: inflate.c:16
Definition: inflate.c:14

Function Documentation

◆ ZEXPORT()

ZEXPORT ( int  )

Definition at line 54 of file inflate.c.

56 {
57  if (z == Z_NULL || z->state == Z_NULL)
58  return Z_STREAM_ERROR;
59  z->total_in = z->total_out = 0;
60  z->msg = Z_NULL;
61  z->state->mode = z->state->nowrap ? BLOCKS : METHOD;
62  inflate_blocks_reset(z->state->blocks, z, Z_NULL);
63  Tracev((stderr, "inflate: reset\n"));
64  return Z_OK;
65 }
#define Z_STREAM_ERROR
Definition: zlib.h:181
#define Z_OK
Definition: zlib.h:177
GLdouble GLdouble z
Definition: glext.h:5874
Definition: inflate.c:13
#define Tracev(x)
Definition: zutil.h:198
Definition: inflate.c:20
FILE * stderr
void inflate_blocks_reset(inflate_blocks_statef *s, z_streamp z, uLongf *c)
Definition: infblock.c:67
#define Z_NULL
Definition: zlib.h:212