XenevaOS
Loading...
Searching...
No Matches
Classes | Macros | Typedefs | Enumerations | Functions
miniz.h File Reference
#include "miniz_export.h"
#include <stddef.h>
#include <time.h>
#include "miniz_common.h"
#include "miniz_tinfl.h"
Include dependency graph for miniz.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  mz_stream_s
 

Macros

#define MINIZ_X86_OR_X64_CPU   0
 
#define MINIZ_LITTLE_ENDIAN   0
 
#define MINIZ_USE_UNALIGNED_LOADS_AND_STORES   0
 
#define MINIZ_HAS_64BIT_REGISTERS   0
 
#define MZ_ADLER32_INIT   (1)
 
#define MZ_CRC32_INIT   (0)
 
#define MZ_DEFLATED   8
 
#define MZ_VERSION   "11.0.2"
 
#define MZ_VERNUM   0xB002
 
#define MZ_VER_MAJOR   11
 
#define MZ_VER_MINOR   2
 
#define MZ_VER_REVISION   0
 
#define MZ_VER_SUBREVISION   0
 
#define MZ_DEFAULT_WINDOW_BITS   15
 
#define Z_NULL   0
 
#define Z_NO_FLUSH   MZ_NO_FLUSH
 
#define Z_PARTIAL_FLUSH   MZ_PARTIAL_FLUSH
 
#define Z_SYNC_FLUSH   MZ_SYNC_FLUSH
 
#define Z_FULL_FLUSH   MZ_FULL_FLUSH
 
#define Z_FINISH   MZ_FINISH
 
#define Z_BLOCK   MZ_BLOCK
 
#define Z_OK   MZ_OK
 
#define Z_STREAM_END   MZ_STREAM_END
 
#define Z_NEED_DICT   MZ_NEED_DICT
 
#define Z_ERRNO   MZ_ERRNO
 
#define Z_STREAM_ERROR   MZ_STREAM_ERROR
 
#define Z_DATA_ERROR   MZ_DATA_ERROR
 
#define Z_MEM_ERROR   MZ_MEM_ERROR
 
#define Z_BUF_ERROR   MZ_BUF_ERROR
 
#define Z_VERSION_ERROR   MZ_VERSION_ERROR
 
#define Z_PARAM_ERROR   MZ_PARAM_ERROR
 
#define Z_NO_COMPRESSION   MZ_NO_COMPRESSION
 
#define Z_BEST_SPEED   MZ_BEST_SPEED
 
#define Z_BEST_COMPRESSION   MZ_BEST_COMPRESSION
 
#define Z_DEFAULT_COMPRESSION   MZ_DEFAULT_COMPRESSION
 
#define Z_DEFAULT_STRATEGY   MZ_DEFAULT_STRATEGY
 
#define Z_FILTERED   MZ_FILTERED
 
#define Z_HUFFMAN_ONLY   MZ_HUFFMAN_ONLY
 
#define Z_RLE   MZ_RLE
 
#define Z_FIXED   MZ_FIXED
 
#define Z_DEFLATED   MZ_DEFLATED
 
#define Z_DEFAULT_WINDOW_BITS   MZ_DEFAULT_WINDOW_BITS
 
#define alloc_func   mz_alloc_func
 
#define free_func   mz_free_func
 
#define internal_state   mz_internal_state
 
#define z_stream   mz_stream
 
#define deflateInit   mz_deflateInit
 
#define deflateInit2   mz_deflateInit2
 
#define deflateReset   mz_deflateReset
 
#define deflate   mz_deflate
 
#define deflateEnd   mz_deflateEnd
 
#define deflateBound   mz_deflateBound
 
#define compress   mz_compress
 
#define compress2   mz_compress2
 
#define compressBound   mz_compressBound
 
#define inflateInit   mz_inflateInit
 
#define inflateInit2   mz_inflateInit2
 
#define inflateReset   mz_inflateReset
 
#define inflate   mz_inflate
 
#define inflateEnd   mz_inflateEnd
 
#define uncompress   mz_uncompress
 
#define uncompress2   mz_uncompress2
 
#define crc32   mz_crc32
 
#define adler32   mz_adler32
 
#define MAX_WBITS   15
 
#define MAX_MEM_LEVEL   9
 
#define zError   mz_error
 
#define ZLIB_VERSION   MZ_VERSION
 
#define ZLIB_VERNUM   MZ_VERNUM
 
#define ZLIB_VER_MAJOR   MZ_VER_MAJOR
 
#define ZLIB_VER_MINOR   MZ_VER_MINOR
 
#define ZLIB_VER_REVISION   MZ_VER_REVISION
 
#define ZLIB_VER_SUBREVISION   MZ_VER_SUBREVISION
 
#define zlibVersion   mz_version
 
#define zlib_version   mz_version()
 

Typedefs

typedef unsigned long mz_ulong
 
typedef void *(* mz_alloc_func) (void *opaque, size_t items, size_t size)
 
typedef void(* mz_free_func) (void *opaque, void *address)
 
typedef void *(* mz_realloc_func) (void *opaque, void *address, size_t items, size_t size)
 
typedef struct mz_stream_s mz_stream
 
typedef mz_stream * mz_streamp
 
typedef unsigned char Byte
 
typedef unsigned int uInt
 
typedef mz_ulong uLong
 
typedef Byte Bytef
 
typedef uInt uIntf
 
typedef char charf
 
typedef int intf
 
typedef void * voidpf
 
typedef uLong uLongf
 
typedef void * voidp
 
typedef void *const voidpc
 

Enumerations

enum  {
  MZ_DEFAULT_STRATEGY = 0 , MZ_FILTERED = 1 , MZ_HUFFMAN_ONLY = 2 , MZ_RLE = 3 ,
  MZ_FIXED = 4
}
 
enum  {
  MZ_NO_COMPRESSION = 0 , MZ_BEST_SPEED = 1 , MZ_BEST_COMPRESSION = 9 , MZ_UBER_COMPRESSION = 10 ,
  MZ_DEFAULT_LEVEL = 6 , MZ_DEFAULT_COMPRESSION = -1
}
 
enum  {
  MZ_NO_FLUSH = 0 , MZ_PARTIAL_FLUSH = 1 , MZ_SYNC_FLUSH = 2 , MZ_FULL_FLUSH = 3 ,
  MZ_FINISH = 4 , MZ_BLOCK = 5
}
 
enum  {
  MZ_OK = 0 , MZ_STREAM_END = 1 , MZ_NEED_DICT = 2 , MZ_ERRNO = -1 ,
  MZ_STREAM_ERROR = -2 , MZ_DATA_ERROR = -3 , MZ_MEM_ERROR = -4 , MZ_BUF_ERROR = -5 ,
  MZ_VERSION_ERROR = -6 , MZ_PARAM_ERROR = -10000
}
 

Functions

MINIZ_EXPORT void mz_free (void *p)
 
MINIZ_EXPORT mz_ulong mz_adler32 (mz_ulong adler, const unsigned char *ptr, size_t buf_len)
 
MINIZ_EXPORT mz_ulong mz_crc32 (mz_ulong crc, const unsigned char *ptr, size_t buf_len)
 
MINIZ_EXPORT const char * mz_version (void)
 
MINIZ_EXPORT int mz_deflateInit (mz_streamp pStream, int level)
 
MINIZ_EXPORT int mz_deflateInit2 (mz_streamp pStream, int level, int method, int window_bits, int mem_level, int strategy)
 
MINIZ_EXPORT int mz_deflateReset (mz_streamp pStream)
 
MINIZ_EXPORT int mz_deflate (mz_streamp pStream, int flush)
 
MINIZ_EXPORT int mz_deflateEnd (mz_streamp pStream)
 
MINIZ_EXPORT mz_ulong mz_deflateBound (mz_streamp pStream, mz_ulong source_len)
 
MINIZ_EXPORT int mz_compress (unsigned char *pDest, mz_ulong *pDest_len, const unsigned char *pSource, mz_ulong source_len)
 
MINIZ_EXPORT int mz_compress2 (unsigned char *pDest, mz_ulong *pDest_len, const unsigned char *pSource, mz_ulong source_len, int level)
 
MINIZ_EXPORT mz_ulong mz_compressBound (mz_ulong source_len)
 
MINIZ_EXPORT int mz_inflateInit (mz_streamp pStream)
 
MINIZ_EXPORT int mz_inflateInit2 (mz_streamp pStream, int window_bits)
 
MINIZ_EXPORT int mz_inflateReset (mz_streamp pStream)
 
MINIZ_EXPORT int mz_inflate (mz_streamp pStream, int flush)
 
MINIZ_EXPORT int mz_inflateEnd (mz_streamp pStream)
 
MINIZ_EXPORT int mz_uncompress (unsigned char *pDest, mz_ulong *pDest_len, const unsigned char *pSource, mz_ulong source_len)
 
MINIZ_EXPORT int mz_uncompress2 (unsigned char *pDest, mz_ulong *pDest_len, const unsigned char *pSource, mz_ulong *pSource_len)
 
MINIZ_EXPORT const char * mz_error (int err)
 

Macro Definition Documentation

◆ adler32

#define adler32   mz_adler32

◆ alloc_func

#define alloc_func   mz_alloc_func

◆ compress

#define compress   mz_compress

◆ compress2

#define compress2   mz_compress2

◆ compressBound

#define compressBound   mz_compressBound

◆ crc32

#define crc32   mz_crc32

◆ deflate

#define deflate   mz_deflate

◆ deflateBound

#define deflateBound   mz_deflateBound

◆ deflateEnd

#define deflateEnd   mz_deflateEnd

◆ deflateInit

#define deflateInit   mz_deflateInit

◆ deflateInit2

#define deflateInit2   mz_deflateInit2

◆ deflateReset

#define deflateReset   mz_deflateReset

◆ free_func

#define free_func   mz_free_func

◆ inflate

#define inflate   mz_inflate

◆ inflateEnd

#define inflateEnd   mz_inflateEnd

◆ inflateInit

#define inflateInit   mz_inflateInit

◆ inflateInit2

#define inflateInit2   mz_inflateInit2

◆ inflateReset

#define inflateReset   mz_inflateReset

◆ internal_state

#define internal_state   mz_internal_state

◆ MAX_MEM_LEVEL

#define MAX_MEM_LEVEL   9

◆ MAX_WBITS

#define MAX_WBITS   15

◆ MINIZ_HAS_64BIT_REGISTERS

#define MINIZ_HAS_64BIT_REGISTERS   0

◆ MINIZ_LITTLE_ENDIAN

#define MINIZ_LITTLE_ENDIAN   0

◆ MINIZ_USE_UNALIGNED_LOADS_AND_STORES

#define MINIZ_USE_UNALIGNED_LOADS_AND_STORES   0

◆ MINIZ_X86_OR_X64_CPU

#define MINIZ_X86_OR_X64_CPU   0

◆ MZ_ADLER32_INIT

#define MZ_ADLER32_INIT   (1)

◆ MZ_CRC32_INIT

#define MZ_CRC32_INIT   (0)

◆ MZ_DEFAULT_WINDOW_BITS

#define MZ_DEFAULT_WINDOW_BITS   15

◆ MZ_DEFLATED

#define MZ_DEFLATED   8

◆ MZ_VER_MAJOR

#define MZ_VER_MAJOR   11

◆ MZ_VER_MINOR

#define MZ_VER_MINOR   2

◆ MZ_VER_REVISION

#define MZ_VER_REVISION   0

◆ MZ_VER_SUBREVISION

#define MZ_VER_SUBREVISION   0

◆ MZ_VERNUM

#define MZ_VERNUM   0xB002

◆ MZ_VERSION

#define MZ_VERSION   "11.0.2"

◆ uncompress

#define uncompress   mz_uncompress

◆ uncompress2

#define uncompress2   mz_uncompress2

◆ Z_BEST_COMPRESSION

#define Z_BEST_COMPRESSION   MZ_BEST_COMPRESSION

◆ Z_BEST_SPEED

#define Z_BEST_SPEED   MZ_BEST_SPEED

◆ Z_BLOCK

#define Z_BLOCK   MZ_BLOCK

◆ Z_BUF_ERROR

#define Z_BUF_ERROR   MZ_BUF_ERROR

◆ Z_DATA_ERROR

#define Z_DATA_ERROR   MZ_DATA_ERROR

◆ Z_DEFAULT_COMPRESSION

#define Z_DEFAULT_COMPRESSION   MZ_DEFAULT_COMPRESSION

◆ Z_DEFAULT_STRATEGY

#define Z_DEFAULT_STRATEGY   MZ_DEFAULT_STRATEGY

◆ Z_DEFAULT_WINDOW_BITS

#define Z_DEFAULT_WINDOW_BITS   MZ_DEFAULT_WINDOW_BITS

◆ Z_DEFLATED

#define Z_DEFLATED   MZ_DEFLATED

◆ Z_ERRNO

#define Z_ERRNO   MZ_ERRNO

◆ Z_FILTERED

#define Z_FILTERED   MZ_FILTERED

◆ Z_FINISH

#define Z_FINISH   MZ_FINISH

◆ Z_FIXED

#define Z_FIXED   MZ_FIXED

◆ Z_FULL_FLUSH

#define Z_FULL_FLUSH   MZ_FULL_FLUSH

◆ Z_HUFFMAN_ONLY

#define Z_HUFFMAN_ONLY   MZ_HUFFMAN_ONLY

◆ Z_MEM_ERROR

#define Z_MEM_ERROR   MZ_MEM_ERROR

◆ Z_NEED_DICT

#define Z_NEED_DICT   MZ_NEED_DICT

◆ Z_NO_COMPRESSION

#define Z_NO_COMPRESSION   MZ_NO_COMPRESSION

◆ Z_NO_FLUSH

#define Z_NO_FLUSH   MZ_NO_FLUSH

◆ Z_NULL

#define Z_NULL   0

◆ Z_OK

#define Z_OK   MZ_OK

◆ Z_PARAM_ERROR

#define Z_PARAM_ERROR   MZ_PARAM_ERROR

◆ Z_PARTIAL_FLUSH

#define Z_PARTIAL_FLUSH   MZ_PARTIAL_FLUSH

◆ Z_RLE

#define Z_RLE   MZ_RLE

◆ z_stream

#define z_stream   mz_stream

◆ Z_STREAM_END

#define Z_STREAM_END   MZ_STREAM_END

◆ Z_STREAM_ERROR

#define Z_STREAM_ERROR   MZ_STREAM_ERROR

◆ Z_SYNC_FLUSH

#define Z_SYNC_FLUSH   MZ_SYNC_FLUSH

◆ Z_VERSION_ERROR

#define Z_VERSION_ERROR   MZ_VERSION_ERROR

◆ zError

#define zError   mz_error

◆ ZLIB_VER_MAJOR

#define ZLIB_VER_MAJOR   MZ_VER_MAJOR

◆ ZLIB_VER_MINOR

#define ZLIB_VER_MINOR   MZ_VER_MINOR

◆ ZLIB_VER_REVISION

#define ZLIB_VER_REVISION   MZ_VER_REVISION

◆ ZLIB_VER_SUBREVISION

#define ZLIB_VER_SUBREVISION   MZ_VER_SUBREVISION

◆ ZLIB_VERNUM

#define ZLIB_VERNUM   MZ_VERNUM

◆ ZLIB_VERSION

#define ZLIB_VERSION   MZ_VERSION

◆ zlib_version

#define zlib_version   mz_version()

◆ zlibVersion

#define zlibVersion   mz_version

Typedef Documentation

◆ Byte

typedef unsigned char Byte

◆ Bytef

typedef Byte Bytef

◆ charf

typedef char charf

◆ intf

typedef int intf

◆ mz_alloc_func

typedef void *(* mz_alloc_func) (void *opaque, size_t items, size_t size)

◆ mz_free_func

typedef void(* mz_free_func) (void *opaque, void *address)

◆ mz_realloc_func

typedef void *(* mz_realloc_func) (void *opaque, void *address, size_t items, size_t size)

◆ mz_stream

typedef struct mz_stream_s mz_stream

◆ mz_streamp

◆ mz_ulong

typedef unsigned long mz_ulong

◆ uInt

typedef unsigned int uInt

◆ uIntf

typedef uInt uIntf

◆ uLong

typedef mz_ulong uLong

◆ uLongf

typedef uLong uLongf

◆ voidp

typedef void* voidp

◆ voidpc

typedef void* const voidpc

◆ voidpf

typedef void* voidpf

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
MZ_DEFAULT_STRATEGY 
MZ_FILTERED 
MZ_HUFFMAN_ONLY 
MZ_RLE 
MZ_FIXED 

◆ anonymous enum

anonymous enum
Enumerator
MZ_NO_COMPRESSION 
MZ_BEST_SPEED 
MZ_BEST_COMPRESSION 
MZ_UBER_COMPRESSION 
MZ_DEFAULT_LEVEL 
MZ_DEFAULT_COMPRESSION 

◆ anonymous enum

anonymous enum
Enumerator
MZ_NO_FLUSH 
MZ_PARTIAL_FLUSH 
MZ_SYNC_FLUSH 
MZ_FULL_FLUSH 
MZ_FINISH 
MZ_BLOCK 

◆ anonymous enum

anonymous enum
Enumerator
MZ_OK 
MZ_STREAM_END 
MZ_NEED_DICT 
MZ_ERRNO 
MZ_STREAM_ERROR 
MZ_DATA_ERROR 
MZ_MEM_ERROR 
MZ_BUF_ERROR 
MZ_VERSION_ERROR 
MZ_PARAM_ERROR 

Function Documentation

◆ mz_adler32()

MINIZ_EXPORT mz_ulong mz_adler32 ( mz_ulong  adler,
const unsigned char *  ptr,
size_t  buf_len 
)

◆ mz_compress()

MINIZ_EXPORT int mz_compress ( unsigned char *  pDest,
mz_ulong *  pDest_len,
const unsigned char *  pSource,
mz_ulong  source_len 
)

◆ mz_compress2()

MINIZ_EXPORT int mz_compress2 ( unsigned char *  pDest,
mz_ulong *  pDest_len,
const unsigned char *  pSource,
mz_ulong  source_len,
int  level 
)

◆ mz_compressBound()

MINIZ_EXPORT mz_ulong mz_compressBound ( mz_ulong  source_len)

◆ mz_crc32()

MINIZ_EXPORT mz_ulong mz_crc32 ( mz_ulong  crc,
const unsigned char *  ptr,
size_t  buf_len 
)

◆ mz_deflate()

MINIZ_EXPORT int mz_deflate ( mz_streamp  pStream,
int  flush 
)

◆ mz_deflateBound()

MINIZ_EXPORT mz_ulong mz_deflateBound ( mz_streamp  pStream,
mz_ulong  source_len 
)

◆ mz_deflateEnd()

MINIZ_EXPORT int mz_deflateEnd ( mz_streamp  pStream)

◆ mz_deflateInit()

MINIZ_EXPORT int mz_deflateInit ( mz_streamp  pStream,
int  level 
)

◆ mz_deflateInit2()

MINIZ_EXPORT int mz_deflateInit2 ( mz_streamp  pStream,
int  level,
int  method,
int  window_bits,
int  mem_level,
int  strategy 
)

◆ mz_deflateReset()

MINIZ_EXPORT int mz_deflateReset ( mz_streamp  pStream)

◆ mz_error()

MINIZ_EXPORT const char * mz_error ( int  err)

◆ mz_free()

MINIZ_EXPORT void mz_free ( void *  p)

◆ mz_inflate()

MINIZ_EXPORT int mz_inflate ( mz_streamp  pStream,
int  flush 
)

◆ mz_inflateEnd()

MINIZ_EXPORT int mz_inflateEnd ( mz_streamp  pStream)

◆ mz_inflateInit()

MINIZ_EXPORT int mz_inflateInit ( mz_streamp  pStream)

◆ mz_inflateInit2()

MINIZ_EXPORT int mz_inflateInit2 ( mz_streamp  pStream,
int  window_bits 
)

◆ mz_inflateReset()

MINIZ_EXPORT int mz_inflateReset ( mz_streamp  pStream)

◆ mz_uncompress()

MINIZ_EXPORT int mz_uncompress ( unsigned char *  pDest,
mz_ulong *  pDest_len,
const unsigned char *  pSource,
mz_ulong  source_len 
)

◆ mz_uncompress2()

MINIZ_EXPORT int mz_uncompress2 ( unsigned char *  pDest,
mz_ulong *  pDest_len,
const unsigned char *  pSource,
mz_ulong *  pSource_len 
)

◆ mz_version()

MINIZ_EXPORT const char * mz_version ( void  )