Visualization Library 2.0.0-b5

A lightweight C++ OpenGL middleware for 2D/3D graphics

VL     Star     Watch     Fork     Issue

[Download] [Tutorials] [All Classes] [Grouped Classes]
Macros | Functions
infcover.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include "zlib.h"
#include "inftrees.h"
#include "inflate.h"

Go to the source code of this file.

Macros

#define ZLIB_INTERNAL
 
#define local   static
 

Functions

local voidmem_alloc (void *mem, unsigned count, unsigned size)
 
local void mem_free (void *mem, void *ptr)
 
local void mem_setup (z_stream *strm)
 
local void mem_limit (z_stream *strm, size_t limit)
 
local void mem_used (z_stream *strm, char *prefix)
 
local void mem_high (z_stream *strm, char *prefix)
 
local void mem_done (z_stream *strm, char *prefix)
 
local unsigned char * h2b (const char *hex, unsigned *len)
 
local void inf (char *hex, char *what, unsigned step, int win, unsigned len, int err)
 
local void cover_support (void)
 
local void cover_wrap (void)
 
local unsigned pull (void *desc, unsigned char **buf)
 
local int push (void *desc, unsigned char *buf, unsigned len)
 
local void cover_back (void)
 
local int try (char *hex, char *id, int err)
 
local void cover_inflate (void)
 
local void cover_trees (void)
 
local void cover_fast (void)
 
int main (void)
 

Macro Definition Documentation

◆ local

#define local   static

Definition at line 20 of file infcover.c.

◆ ZLIB_INTERNAL

#define ZLIB_INTERNAL

Definition at line 16 of file infcover.c.

Function Documentation

◆ cover_back()

local void cover_back ( void  )

◆ cover_fast()

local void cover_fast ( void  )

Definition at line 641 of file infcover.c.

References inf(), Z_DATA_ERROR, Z_OK, and Z_STREAM_END.

Referenced by main().

◆ cover_inflate()

local void cover_inflate ( void  )

Definition at line 581 of file infcover.c.

References inf(), Z_OK, and Z_STREAM_END.

Referenced by main().

◆ cover_support()

local void cover_support ( void  )

◆ cover_trees()

local void cover_trees ( void  )

Definition at line 617 of file infcover.c.

References bits, DISTS, ENOUGH_DISTS, inflate_table(), inflate_state::lens, inflate_state::next, and inflate_state::work.

Referenced by main().

◆ cover_wrap()

local void cover_wrap ( void  )

◆ h2b()

local unsigned char* h2b ( const char *  hex,
unsigned *  len 
)

Definition at line 245 of file infcover.c.

References malloc(), and NULL.

Referenced by inf(), and try().

◆ inf()

local void inf ( char *  hex,
char *  what,
unsigned  step,
int  win,
unsigned  len,
int  err 
)

◆ main()

int main ( void  )

◆ mem_alloc()

local void* mem_alloc ( void mem,
unsigned  count,
unsigned  size 
)

Definition at line 71 of file infcover.c.

References free(), malloc(), NULL, and ptr.

Referenced by mem_setup().

◆ mem_done()

local void mem_done ( z_stream strm,
char *  prefix 
)

◆ mem_free()

local void mem_free ( void mem,
void ptr 
)

Definition at line 112 of file infcover.c.

References free(), and NULL.

Referenced by mem_setup().

◆ mem_high()

local void mem_high ( z_stream strm,
char *  prefix 
)

Definition at line 192 of file infcover.c.

References z_stream_s::opaque.

Referenced by mem_done().

◆ mem_limit()

local void mem_limit ( z_stream strm,
size_t  limit 
)

Definition at line 176 of file infcover.c.

References z_stream_s::opaque.

Referenced by cover_wrap(), and inf().

◆ mem_setup()

local void mem_setup ( z_stream strm)

◆ mem_used()

local void mem_used ( z_stream strm,
char *  prefix 
)

Definition at line 184 of file infcover.c.

References z_stream_s::opaque.

Referenced by cover_support().

◆ pull()

local unsigned pull ( void desc,
unsigned char **  buf 
)

Definition at line 447 of file infcover.c.

References inflate_state::mode, inflate_state::next, SYNC, and Z_NULL.

Referenced by cover_back(), and try().

◆ push()

local int push ( void desc,
unsigned char *  buf,
unsigned  len 
)

Definition at line 463 of file infcover.c.

References Z_NULL.

Referenced by cover_back(), and try().

◆ try()

local int try ( char *  hex,
char *  id,
int  err 
)