Common Lisp Package: ZLIB-FFI

The zlib-ffi package provides a FFI for most of Zlib. It may be used directly, but is intended for use via the uk.co.deoxybyte-gzip package which wraps Zlib in a Lisp-style interface.

README:

FUNCTION

Public

Undocumented

%ADLER32 (ADLER BYTES LEN)

%COMPRESS (DEST DESTLEN SOURCE SOURCELEN)

%COMPRESS2 (DEST DESTLEN SOURCE SOURCELEN LEVEL)

%CRC32 (CRC BYTES LEN)

%DEFLATE (STRM FLUSH)

%DEFLATE-INIT (STRM LEVEL VERSION STRM-SIZE)

%DEFLATE-INIT2 (STRM LEVEL METHOD WINDOW-BITS MEM-LEVEL STRATEGY VERSION STRM-SIZE)

%INFLATE (STRM FLUSH)

%INFLATE-INIT (STRM VERSION STRM-SIZE)

%INFLATE-INIT2 (STRM WINDOW-BITS VERSION STRM-SIZE)

%UNCOMPRESS (DEST DESTLEN SOURCE SOURCELEN)

DEFLATE-END (STRM)

DEFLATE-RESET (STRM)

GZCLOSE (GZ)

GZDOPEN (FD MODE)

GZEOF (GZ)

GZERROR (GZ ERRNUM)

GZFLUSH (GZ FLUSH)

GZGETC (GZ)

GZGETS (GZ BUF LEN)

GZOPEN (PATH MODE)

GZPUTC (GZ CHAR)

GZPUTS (GZ STR)

GZREAD (GZ BUF LEN)

GZSEEK (GZ OFFSET WHENCE)

GZTELL (GZ)

GZWRITE (GZ BUF LEN)

INFLATE-END (STRM)

INFLATE-RESET (STRM)

ZLIB-VERSION

Private

Undocumented

%VAR-ACCESSOR-*C-ERROR-NUMBER*

SETF%VAR-ACCESSOR-*C-ERROR-NUMBER* (VALUE)

MACRO

Public

DEFLATE-INIT (STRM LEVEL)

Macro that emulates Zlib's deflateInit.

DEFLATE-INIT2 (STRM LEVEL METHOD WINDOW-BITS MEM-LEVEL STRATEGY)

Macro that emulates Zlib's deflateInit2.

INFLATE-INIT (STRM)

Macro that emulates Zlib's inflateInit.

INFLATE-INIT2 (STRM WINDOW-BITS)

Macro that emulates Zlib's inflateInit2.

CLASS

Private

Undocumented

Z-STREAM-TCLASS

CONSTANT

Public

+Z-DEFLATED+

Compression method

+Z-OK+

No error.

Undocumented

+Z-BUF-ERROR+

+Z-DATA-ERROR+

+Z-DEFAULT-COMPRESSION+

+Z-DEFAULT-STRATEGY+

+Z-ERRNO+

+Z-FILTERED+

+Z-FINISH+

+Z-FULL-FLUSH+

+Z-HUFFMAN-ONLY+

+Z-MEM-ERROR+

+Z-NEED-DICT+

+Z-NO-FLUSH+

+Z-NULL+

+Z-STREAM-END+

+Z-STREAM-ERROR+

+Z-VERSION-ERROR+

Private

Undocumented

+Z-BEST-COMPRESSION+

+Z-BEST-SPEED+

+Z-NO-COMPRESSION+

+Z-SYNC-FLUSH+