Defines | Functions
inflate.c File Reference
#include "zutil.h"
#include "inftrees.h"
#include "inflate.h"
#include "inffast.h"
#include "inffixed.h"
Include dependency graph for inflate.c:

Go to the source code of this file.

Defines

#define BITS(n)   ((unsigned)hold & ((1U << (n)) - 1))
#define BYTEBITS()
#define CRC2(check, word)
#define CRC4(check, word)
#define DROPBITS(n)
#define INITBITS()
#define LOAD()
#define NEEDBITS(n)
#define PULLBYTE()
#define RESTORE()
#define REVERSE(q)
#define UPDATE(check, buf, len)   (state->flags ? crc32(check, buf, len) : adler32(check, buf, len))

Functions

local void fixedtables (struct inflate_state FAR *state)
int ZEXPORT inflate (z_streamp strm, int flush)
int ZEXPORT inflateCopy (z_streamp dest, z_streamp source)
int ZEXPORT inflateEnd (z_streamp strm)
int ZEXPORT inflateGetHeader (z_streamp strm, gz_headerp head)
int ZEXPORT inflateInit2_ (z_streamp strm, int windowBits, const char *version, int stream_size)
int ZEXPORT inflateInit_ (z_streamp strm, const char *version, int stream_size)
int ZEXPORT inflatePrime (z_streamp strm, int bits, int value)
int ZEXPORT inflateReset (z_streamp strm)
int ZEXPORT inflateSetDictionary (z_streamp strm, const Bytef *dictionary, uInt dictLength)
int ZEXPORT inflateSync (z_streamp strm)
int ZEXPORT inflateSyncPoint (z_streamp strm)
local void fixedtables OF ((struct inflate_state FAR *state))
local int updatewindow OF ((z_streamp strm, unsigned out))
local unsigned syncsearch OF ((unsigned FAR *have, unsigned char FAR *buf, unsigned len))
local unsigned syncsearch (unsigned FAR *have, unsigned char FAR *buf, unsigned len)
local int updatewindow (z_streamp strm, unsigned out)

Define Documentation

#define BITS (   n)    ((unsigned)hold & ((1U << (n)) - 1))

Definition at line 450 of file inflate.c.

#define BYTEBITS ( )
Value:
do { \
        hold >>= bits & 7; \
        bits -= bits & 7; \
    } while (0)

Definition at line 461 of file inflate.c.

#define CRC2 (   check,
  word 
)
Value:
do { \
        hbuf[0] = (unsigned char)(word); \
        hbuf[1] = (unsigned char)((word) >> 8); \
        check = crc32(check, hbuf, 2); \
    } while (0)

Definition at line 385 of file inflate.c.

#define CRC4 (   check,
  word 
)
Value:
do { \
        hbuf[0] = (unsigned char)(word); \
        hbuf[1] = (unsigned char)((word) >> 8); \
        hbuf[2] = (unsigned char)((word) >> 16); \
        hbuf[3] = (unsigned char)((word) >> 24); \
        check = crc32(check, hbuf, 4); \
    } while (0)

Definition at line 392 of file inflate.c.

#define DROPBITS (   n)
Value:
do { \
        hold >>= (n); \
        bits -= (unsigned)(n); \
    } while (0)

Definition at line 454 of file inflate.c.

#define INITBITS ( )
Value:
do { \
        hold = 0; \
        bits = 0; \
    } while (0)

Definition at line 425 of file inflate.c.

#define LOAD ( )
Value:
do { \
        put = strm->next_out; \
        left = strm->avail_out; \
        next = strm->next_in; \
        have = strm->avail_in; \
        hold = state->hold; \
        bits = state->bits; \
    } while (0)

Definition at line 403 of file inflate.c.

#define NEEDBITS (   n)
Value:
do { \
        while (bits < (unsigned)(n)) \
            PULLBYTE(); \
    } while (0)

Definition at line 443 of file inflate.c.

#define PULLBYTE ( )
Value:
do { \
        if (have == 0) goto inf_leave; \
        have--; \
        hold += (unsigned long)(*next++) << bits; \
        bits += 8; \
    } while (0)

Definition at line 433 of file inflate.c.

#define RESTORE ( )
Value:
do { \
        strm->next_out = put; \
        strm->avail_out = left; \
        strm->next_in = next; \
        strm->avail_in = have; \
        state->hold = hold; \
        state->bits = bits; \
    } while (0)

Definition at line 414 of file inflate.c.

#define REVERSE (   q)
Value:
((((q) >> 24) & 0xff) + (((q) >> 8) & 0xff00) + \
     (((q) & 0xff00) << 8) + (((q) & 0xff) << 24))

Definition at line 468 of file inflate.c.

#define UPDATE (   check,
  buf,
  len 
)    (state->flags ? crc32(check, buf, len) : adler32(check, buf, len))

Definition at line 377 of file inflate.c.


Function Documentation

local void fixedtables ( struct inflate_state FAR state)

Definition at line 205 of file inflate.c.

int ZEXPORT inflate ( z_streamp  strm,
int  flush 
)

Definition at line 554 of file inflate.c.

int ZEXPORT inflateCopy ( z_streamp  dest,
z_streamp  source 
)

Definition at line 1323 of file inflate.c.

Definition at line 1155 of file inflate.c.

Definition at line 1211 of file inflate.c.

int ZEXPORT inflateInit2_ ( z_streamp  strm,
int  windowBits,
const char *  version,
int  stream_size 
)

Definition at line 144 of file inflate.c.

int ZEXPORT inflateInit_ ( z_streamp  strm,
const char *  version,
int  stream_size 
)

Definition at line 187 of file inflate.c.

int ZEXPORT inflatePrime ( z_streamp  strm,
int  bits,
int  value 
)

Definition at line 128 of file inflate.c.

Definition at line 103 of file inflate.c.

int ZEXPORT inflateSetDictionary ( z_streamp  strm,
const Bytef dictionary,
uInt  dictLength 
)

Definition at line 1169 of file inflate.c.

Definition at line 1262 of file inflate.c.

Definition at line 1313 of file inflate.c.

local void fixedtables OF ( (struct inflate_state FAR *state)  )
local int updatewindow OF ( (z_streamp strm, unsigned out)  )
local unsigned syncsearch OF ( (unsigned FAR *have, unsigned char FAR *buf, unsigned len)  )
local unsigned syncsearch ( unsigned FAR have,
unsigned char FAR buf,
unsigned  len 
)

Definition at line 1239 of file inflate.c.

local int updatewindow ( z_streamp  strm,
unsigned  out 
)

Definition at line 323 of file inflate.c.



openhrp3
Author(s): AIST, General Robotix Inc., Nakamura Lab of Dept. of Mechano Informatics at University of Tokyo
autogenerated on Thu Apr 11 2019 03:30:20