Reuse, not rework
Home

License Awareness



Highly Reusable Software

By activity
Professions, Sciences, Humanities, Business, ...

User Interface
Text-based, GUI, Audio, Video, Keyboards, Mouse, Images,...

Text Strings
Conversions, tests, processing, manipulation,...

Math
Integer, Floating point, Matrix, Statistics, Boolean, ...

Processing
Algorithms, Memory, Process control, Debugging, ...

Stored Data
Data storage, Integrity, Encryption, Compression, ...

Communications
Networks, protocols, Interprocess, Remote, Client Server, ...

Hard World
Timing, Calendar and Clock, Audio, Video, Printer, Controls...

File System
Management, Filtering, File & Directory access, Viewers, ...


librock_CHISEL subject /data/compress/

NAME

librock_zlib - standard zlib compression and decompression, with librock_ name prefix

SYNOPSIS

#include <librock/target/types.c>
#include <librock/zlibh.h>

DESCRIPTION

This is version 1.1.4 of zlib, Jean-loup Gailly and Mark Adler's very popular compression library, modified so that the interface and header file use the librock_ prefix exclusively in all defines and external names and macro definitions. The librock license awareness system is also present in this implementation.

The zlib compression library provides in-memory compression and decompression functions, including integrity checks of the uncompressed data.

Compression can be done in a single step if the buffers are large enough (for example if an input file is mmap'ed), or can be done by repeated calls of the compression function. In the latter case, the application must provide more input and/or consume the output (providing more output space) before each call. [details]

The opposite action, called inflation, is similar. [details]

The library also supports a stdio-like interface to gzip (.gz) files (reading, writing, seeking, rewinding, puts, gets, printf, et al.) [details]

The interface to checksum functions is also exposed. [details]

MT Behavior

All functions are well-behaved in multi-threaded environments. The library does not install any signal handler, and returns error codes instead of exiting or throwing exceptions. The decoder checks the consistency of the compressed data, so the library should never crash even in case of corrupted input.

LICENSE

    Copyright (C) 1995-1998 Jean-loup Gailly and Mark Adler
  Licensed under BSD-ish license, NO WARRANTY. Copies must retain this block.
  License text in <librock/license/zlib.txt> librock_LIDESC_MD5=8ba22cb37e70541a2206b68a3feb5ea9

Source Code

./librock/zlibh.h (source of this manual page)

Tests

Results from (MM/DD/YY) 04/08/02 09:40a

This page copyright (C) 2002 Forrest J. Cavalier III, d-b-a Mib Software, Saylorsburg PA 18353, USA

Verbatim copying and distribution of this generated page is permitted in any medium, provided this notice is preserved.
(The source of this manual page may be covered by a more permissive license which allows modifications.)