ROOTANA
Data Structures | Macros | Functions | Variables
mlz4.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  MLZ4_stream_t
 
struct  MLZ4_streamDecode_t
 

Macros

#define MLZ4_VERSION_MAJOR   1 /* for breaking interface changes */
 
#define MLZ4_VERSION_MINOR   7 /* for new (non-breaking) interface capabilities */
 
#define MLZ4_VERSION_RELEASE   1 /* for tweaks, bug-fixes, or development */
 
#define MLZ4_VERSION_NUMBER   (MLZ4_VERSION_MAJOR *100*100 + MLZ4_VERSION_MINOR *100 + MLZ4_VERSION_RELEASE)
 
#define MLZ4_MEMORY_USAGE   14
 
#define MLZ4_MAX_INPUT_SIZE   0x7E000000 /* 2 113 929 216 bytes */
 
#define MLZ4_COMPRESSBOUND(isize)   ((unsigned)(isize) > (unsigned)MLZ4_MAX_INPUT_SIZE ? 0 : (isize) + ((isize)/255) + 16)
 
#define MLZ4_STREAMSIZE_U64   ((1 << (MLZ4_MEMORY_USAGE-3)) + 4)
 
#define MLZ4_STREAMSIZE   (MLZ4_STREAMSIZE_U64 * sizeof(long long))
 
#define MLZ4_STREAMDECODESIZE_U64   4
 
#define MLZ4_STREAMDECODESIZE   (MLZ4_STREAMDECODESIZE_U64 * sizeof(unsigned long long))
 
#define MLZ4_DEPRECATE_WARNING_DEFBLOCK
 
#define MLZ4_GCC_VERSION   (__GNUC__ * 100 + __GNUC_MINOR__)
 
#define MLZ4_DEPRECATED(message)
 

Functions

int MLZ4_versionNumber (void)
 
int MLZ4_compress_default (const char *source, char *dest, int sourceSize, int maxDestSize)
 
int MLZ4_decompress_safe (const char *source, char *dest, int compressedSize, int maxDecompressedSize)
 
int MLZ4_compressBound (int inputSize)
 
int MLZ4_compress_fast (const char *source, char *dest, int sourceSize, int maxDestSize, int acceleration)
 
int MLZ4_sizeofState (void)
 
int MLZ4_compress_fast_extState (void *state, const char *source, char *dest, int inputSize, int maxDestSize, int acceleration)
 
int MLZ4_compress_destSize (const char *source, char *dest, int *sourceSizePtr, int targetDestSize)
 
int MLZ4_decompress_fast (const char *source, char *dest, int originalSize)
 
int MLZ4_decompress_safe_partial (const char *source, char *dest, int compressedSize, int targetOutputSize, int maxDecompressedSize)
 
void MLZ4_resetStream (MLZ4_stream_t *streamPtr)
 
MLZ4_stream_tMLZ4_createStream (void)
 
int MLZ4_freeStream (MLZ4_stream_t *streamPtr)
 
int MLZ4_loadDict (MLZ4_stream_t *streamPtr, const char *dictionary, int dictSize)
 
int MLZ4_compress_fast_continue (MLZ4_stream_t *streamPtr, const char *src, char *dst, int srcSize, int maxDstSize, int acceleration)
 
int MLZ4_saveDict (MLZ4_stream_t *streamPtr, char *safeBuffer, int dictSize)
 
MLZ4_streamDecode_tMLZ4_createStreamDecode (void)
 
int MLZ4_freeStreamDecode (MLZ4_streamDecode_t *MLZ4_stream)
 
int MLZ4_setStreamDecode (MLZ4_streamDecode_t *MLZ4_streamDecode, const char *dictionary, int dictSize)
 
int MLZ4_decompress_safe_continue (MLZ4_streamDecode_t *MLZ4_streamDecode, const char *source, char *dest, int compressedSize, int maxDecompressedSize)
 
int MLZ4_decompress_fast_continue (MLZ4_streamDecode_t *MLZ4_streamDecode, const char *source, char *dest, int originalSize)
 
int MLZ4_decompress_safe_usingDict (const char *source, char *dest, int compressedSize, int maxDecompressedSize, const char *dictStart, int dictSize)
 
int MLZ4_decompress_fast_usingDict (const char *source, char *dest, int originalSize, const char *dictStart, int dictSize)
 
int MLZ4_compress (const char *source, char *dest, int sourceSize)
 
int MLZ4_compress_limitedOutput (const char *source, char *dest, int sourceSize, int maxOutputSize)
 
int MLZ4_compress_withState (void *state, const char *source, char *dest, int inputSize)
 
int MLZ4_compress_limitedOutput_withState (void *state, const char *source, char *dest, int inputSize, int maxOutputSize)
 
int MLZ4_compress_continue (MLZ4_stream_t *MLZ4_streamPtr, const char *source, char *dest, int inputSize)
 
int MLZ4_compress_limitedOutput_continue (MLZ4_stream_t *MLZ4_streamPtr, const char *source, char *dest, int inputSize, int maxOutputSize)
 
 MLZ4_DEPRECATED ("use MLZ4_createStream() instead") void *MLZ4_create(char *inputBuffer)
 
 MLZ4_DEPRECATED ("use MLZ4_resetStream() instead") int MLZ4_resetStreamState(void *state
 
 MLZ4_DEPRECATED ("use MLZ4_saveDict() instead") char *MLZ4_slideInputBuffer(void *state)
 
 MLZ4_DEPRECATED ("use MLZ4_decompress_safe_usingDict() instead") int MLZ4_decompress_safe_withPrefix64k(const char *src
 
 MLZ4_DEPRECATED ("use MLZ4_decompress_fast_usingDict() instead") int MLZ4_decompress_fast_withPrefix64k(const char *src
 

Variables

char * inputBuffer
 
char * dst
 
char int compressedSize
 
char int int maxDstSize
 
char int originalSize
 

Macro Definition Documentation

◆ MLZ4_COMPRESSBOUND

#define MLZ4_COMPRESSBOUND (   isize)    ((unsigned)(isize) > (unsigned)MLZ4_MAX_INPUT_SIZE ? 0 : (isize) + ((isize)/255) + 16)

Definition at line 106 of file mlz4.h.

◆ MLZ4_DEPRECATE_WARNING_DEFBLOCK

#define MLZ4_DEPRECATE_WARNING_DEFBLOCK

Definition at line 314 of file mlz4.h.

◆ MLZ4_DEPRECATED

#define MLZ4_DEPRECATED (   message)

Definition at line 324 of file mlz4.h.

◆ MLZ4_GCC_VERSION

#define MLZ4_GCC_VERSION   (__GNUC__ * 100 + __GNUC_MINOR__)

Definition at line 315 of file mlz4.h.

◆ MLZ4_MAX_INPUT_SIZE

#define MLZ4_MAX_INPUT_SIZE   0x7E000000 /* 2 113 929 216 bytes */

Definition at line 105 of file mlz4.h.

◆ MLZ4_MEMORY_USAGE

#define MLZ4_MEMORY_USAGE   14

Definition at line 66 of file mlz4.h.

◆ MLZ4_STREAMDECODESIZE

#define MLZ4_STREAMDECODESIZE   (MLZ4_STREAMDECODESIZE_U64 * sizeof(unsigned long long))

Definition at line 248 of file mlz4.h.

◆ MLZ4_STREAMDECODESIZE_U64

#define MLZ4_STREAMDECODESIZE_U64   4

Definition at line 247 of file mlz4.h.

◆ MLZ4_STREAMSIZE

#define MLZ4_STREAMSIZE   (MLZ4_STREAMSIZE_U64 * sizeof(long long))

Definition at line 188 of file mlz4.h.

◆ MLZ4_STREAMSIZE_U64

#define MLZ4_STREAMSIZE_U64   ((1 << (MLZ4_MEMORY_USAGE-3)) + 4)

Definition at line 187 of file mlz4.h.

◆ MLZ4_VERSION_MAJOR

#define MLZ4_VERSION_MAJOR   1 /* for breaking interface changes */

Definition at line 50 of file mlz4.h.

◆ MLZ4_VERSION_MINOR

#define MLZ4_VERSION_MINOR   7 /* for new (non-breaking) interface capabilities */

Definition at line 51 of file mlz4.h.

◆ MLZ4_VERSION_NUMBER

#define MLZ4_VERSION_NUMBER   (MLZ4_VERSION_MAJOR *100*100 + MLZ4_VERSION_MINOR *100 + MLZ4_VERSION_RELEASE)

Definition at line 53 of file mlz4.h.

◆ MLZ4_VERSION_RELEASE

#define MLZ4_VERSION_RELEASE   1 /* for tweaks, bug-fixes, or development */

Definition at line 52 of file mlz4.h.

Function Documentation

◆ MLZ4_compress()

int MLZ4_compress ( const char *  source,
char *  dest,
int  sourceSize 
)

Definition at line 1456 of file lz4.cxx.

◆ MLZ4_compress_continue()

int MLZ4_compress_continue ( MLZ4_stream_t MLZ4_streamPtr,
const char *  source,
char *  dest,
int  inputSize 
)

Definition at line 1460 of file lz4.cxx.

◆ MLZ4_compress_default()

int MLZ4_compress_default ( const char *  source,
char *  dest,
int  sourceSize,
int  maxDestSize 
)

Definition at line 697 of file lz4.cxx.

Here is the caller graph for this function:

◆ MLZ4_compress_destSize()

int MLZ4_compress_destSize ( const char *  source,
char *  dest,
int *  sourceSizePtr,
int  targetDestSize 
)

Definition at line 912 of file lz4.cxx.

◆ MLZ4_compress_fast()

int MLZ4_compress_fast ( const char *  source,
char *  dest,
int  sourceSize,
int  maxDestSize,
int  acceleration 
)

Definition at line 679 of file lz4.cxx.

Here is the caller graph for this function:

◆ MLZ4_compress_fast_continue()

int MLZ4_compress_fast_continue ( MLZ4_stream_t streamPtr,
const char *  src,
char *  dst,
int  srcSize,
int  maxDstSize,
int  acceleration 
)

Definition at line 1011 of file lz4.cxx.

Here is the caller graph for this function:

◆ MLZ4_compress_fast_extState()

int MLZ4_compress_fast_extState ( void *  state,
const char *  source,
char *  dest,
int  inputSize,
int  maxDestSize,
int  acceleration 
)

Definition at line 657 of file lz4.cxx.

Here is the caller graph for this function:

◆ MLZ4_compress_limitedOutput()

int MLZ4_compress_limitedOutput ( const char *  source,
char *  dest,
int  sourceSize,
int  maxOutputSize 
)

Definition at line 1455 of file lz4.cxx.

◆ MLZ4_compress_limitedOutput_continue()

int MLZ4_compress_limitedOutput_continue ( MLZ4_stream_t MLZ4_streamPtr,
const char *  source,
char *  dest,
int  inputSize,
int  maxOutputSize 
)

Definition at line 1459 of file lz4.cxx.

◆ MLZ4_compress_limitedOutput_withState()

int MLZ4_compress_limitedOutput_withState ( void *  state,
const char *  source,
char *  dest,
int  inputSize,
int  maxOutputSize 
)

Definition at line 1457 of file lz4.cxx.

◆ MLZ4_compress_withState()

int MLZ4_compress_withState ( void *  state,
const char *  source,
char *  dest,
int  inputSize 
)

Definition at line 1458 of file lz4.cxx.

◆ MLZ4_compressBound()

int MLZ4_compressBound ( int  inputSize)

Definition at line 372 of file lz4.cxx.

Here is the caller graph for this function:

◆ MLZ4_createStream()

MLZ4_stream_t* MLZ4_createStream ( void  )

Definition at line 935 of file lz4.cxx.

◆ MLZ4_createStreamDecode()

MLZ4_streamDecode_t* MLZ4_createStreamDecode ( void  )

Definition at line 1319 of file lz4.cxx.

◆ MLZ4_decompress_fast()

int MLZ4_decompress_fast ( const char *  source,
char *  dest,
int  originalSize 
)

Definition at line 1298 of file lz4.cxx.

Here is the caller graph for this function:

◆ MLZ4_decompress_fast_continue()

int MLZ4_decompress_fast_continue ( MLZ4_streamDecode_t MLZ4_streamDecode,
const char *  source,
char *  dest,
int  originalSize 
)

Definition at line 1384 of file lz4.cxx.

◆ MLZ4_decompress_fast_usingDict()

int MLZ4_decompress_fast_usingDict ( const char *  source,
char *  dest,
int  originalSize,
const char *  dictStart,
int  dictSize 
)

Definition at line 1439 of file lz4.cxx.

◆ MLZ4_decompress_safe()

int MLZ4_decompress_safe ( const char *  source,
char *  dest,
int  compressedSize,
int  maxDecompressedSize 
)

Definition at line 1288 of file lz4.cxx.

Here is the caller graph for this function:

◆ MLZ4_decompress_safe_continue()

int MLZ4_decompress_safe_continue ( MLZ4_streamDecode_t MLZ4_streamDecode,
const char *  source,
char *  dest,
int  compressedSize,
int  maxDecompressedSize 
)

Definition at line 1355 of file lz4.cxx.

◆ MLZ4_decompress_safe_partial()

int MLZ4_decompress_safe_partial ( const char *  source,
char *  dest,
int  compressedSize,
int  targetOutputSize,
int  maxDecompressedSize 
)

Definition at line 1293 of file lz4.cxx.

◆ MLZ4_decompress_safe_usingDict()

int MLZ4_decompress_safe_usingDict ( const char *  source,
char *  dest,
int  compressedSize,
int  maxDecompressedSize,
const char *  dictStart,
int  dictSize 
)

Definition at line 1434 of file lz4.cxx.

◆ MLZ4_DEPRECATED() [1/5]

MLZ4_DEPRECATED ( "use MLZ4_createStream() instead"  )

◆ MLZ4_DEPRECATED() [2/5]

MLZ4_DEPRECATED ( "use MLZ4_decompress_fast_usingDict() instead"  ) const

◆ MLZ4_DEPRECATED() [3/5]

MLZ4_DEPRECATED ( "use MLZ4_decompress_safe_usingDict() instead"  ) const

◆ MLZ4_DEPRECATED() [4/5]

MLZ4_DEPRECATED ( "use MLZ4_resetStream() instead"  )

◆ MLZ4_DEPRECATED() [5/5]

MLZ4_DEPRECATED ( "use MLZ4_saveDict() instead"  )

◆ MLZ4_freeStream()

int MLZ4_freeStream ( MLZ4_stream_t streamPtr)

Definition at line 948 of file lz4.cxx.

◆ MLZ4_freeStreamDecode()

int MLZ4_freeStreamDecode ( MLZ4_streamDecode_t MLZ4_stream)

Definition at line 1325 of file lz4.cxx.

◆ MLZ4_loadDict()

int MLZ4_loadDict ( MLZ4_stream_t streamPtr,
const char *  dictionary,
int  dictSize 
)

Definition at line 956 of file lz4.cxx.

◆ MLZ4_resetStream()

void MLZ4_resetStream ( MLZ4_stream_t streamPtr)

Definition at line 943 of file lz4.cxx.

Here is the caller graph for this function:

◆ MLZ4_saveDict()

int MLZ4_saveDict ( MLZ4_stream_t streamPtr,
char *  safeBuffer,
int  dictSize 
)

Definition at line 1083 of file lz4.cxx.

Here is the caller graph for this function:

◆ MLZ4_setStreamDecode()

int MLZ4_setStreamDecode ( MLZ4_streamDecode_t MLZ4_streamDecode,
const char *  dictionary,
int  dictSize 
)

Definition at line 1338 of file lz4.cxx.

◆ MLZ4_sizeofState()

int MLZ4_sizeofState ( void  )

Definition at line 373 of file lz4.cxx.

◆ MLZ4_versionNumber()

int MLZ4_versionNumber ( void  )

Definition at line 371 of file lz4.cxx.

Variable Documentation

◆ compressedSize

char int compressedSize

Definition at line 354 of file mlz4.h.

◆ dst

char* dst

Definition at line 354 of file mlz4.h.

◆ inputBuffer

char* inputBuffer

Definition at line 350 of file mlz4.h.

◆ maxDstSize

char int int maxDstSize

Definition at line 354 of file mlz4.h.

◆ originalSize

char int originalSize

Definition at line 355 of file mlz4.h.