zlib

API Reference

zlib

ZLIB

  • Function UNCOMPRESS (buffer &key (uncompressed-size nil) (output-buffer nil) (start 0) (end (length buffer)))
    Uncompresses BUFFER. Returns a vector of bytes containing the uncompressed data, and the length of the uncompressed data. UNCOMPRESSED-SIZE is a hint to set the result buffer size. If UNCOMPRESSED-SIZE is not specified it is set as double of comressed BUFFER size. If OUTPUT-BUFFER is specified, the result will be written to this buffer, and the UNCOMPRESSED-SIZE is ignored. Otherwise (default) a new array will be created of size UNCOMPRESSED-SIZE START specifies the start position in the BUFFER (0 by default) END specifies the end position in the BUFFER (length of BUFFER by default)
  • Function COMPRESS (buffer btype)
    Compresses BUFFER using deflate algorithm of type BTYPE. Recognized types are :NO-COMPRESSION, :FIXED and :DYNAMIC.