BlitzMax/Modules/Miscellaneous/ZLib compression

This module wraps the zlib compression library. See zlib Manual: Utility Functions for more information.

FunctionsEdit

compressEdit

Function compress( dest:Byte Ptr,dest_len Var,source:Byte Ptr,source_len )

Description: Compress a block of data at default compression level

compress2Edit

Function compress2( dest:Byte Ptr,dest_len Var,source:Byte Ptr,source_len,level )

Description: Compress a block of data at specified compression level

uncompressEdit

Function uncompress( dest:Byte Ptr,dest_len Var,source:Byte Ptr,source_len )

Description: Uncompress a block of data