50 #define MLZ4_VERSION_MAJOR 1
51 #define MLZ4_VERSION_MINOR 7
52 #define MLZ4_VERSION_RELEASE 1
53 #define MLZ4_VERSION_NUMBER (MLZ4_VERSION_MAJOR *100*100 + MLZ4_VERSION_MINOR *100 + MLZ4_VERSION_RELEASE)
66 #define MLZ4_MEMORY_USAGE 14
105 #define MLZ4_MAX_INPUT_SIZE 0x7E000000
106 #define MLZ4_COMPRESSBOUND(isize) ((unsigned)(isize) > (unsigned)MLZ4_MAX_INPUT_SIZE ? 0 : (isize) + ((isize)/255) + 16)
187 #define MLZ4_STREAMSIZE_U64 ((1 << (MLZ4_MEMORY_USAGE-3)) + 4)
188 #define MLZ4_STREAMSIZE (MLZ4_STREAMSIZE_U64 * sizeof(long long))
247 #define MLZ4_STREAMDECODESIZE_U64 4
248 #define MLZ4_STREAMDECODESIZE (MLZ4_STREAMDECODESIZE_U64 * sizeof(unsigned long long))
313 #ifndef MLZ4_DEPRECATE_WARNING_DEFBLOCK
314 # define MLZ4_DEPRECATE_WARNING_DEFBLOCK
315 # define MLZ4_GCC_VERSION (__GNUC__ * 100 + __GNUC_MINOR__)
316 # if (MLZ4_GCC_VERSION >= 405) || defined(__clang__)
317 # define MLZ4_DEPRECATED(message) __attribute__((deprecated(message)))
318 # elif (MLZ4_GCC_VERSION >= 301)
319 # define MLZ4_DEPRECATED(message) __attribute__((deprecated))
320 # elif defined(_MSC_VER)
321 # define MLZ4_DEPRECATED(message) __declspec(deprecated(message))
323 # pragma message("WARNING: You need to implement MLZ4_DEPRECATED for this compiler")
324 # define MLZ4_DEPRECATED(message)
int MLZ4_compress_limitedOutput(const char *source, char *dest, int sourceSize, int maxOutputSize)
MLZ4_streamDecode_t * MLZ4_createStreamDecode(void)
int MLZ4_saveDict(MLZ4_stream_t *streamPtr, char *safeBuffer, int dictSize)
#define MLZ4_DEPRECATED(message)
int MLZ4_compress_destSize(const char *source, char *dest, int *sourceSizePtr, int targetDestSize)
MLZ4_stream_t * MLZ4_createStream(void)
int MLZ4_decompress_safe_partial(const char *source, char *dest, int compressedSize, int targetOutputSize, int maxDecompressedSize)
int MLZ4_decompress_fast(const char *source, char *dest, int originalSize)
int MLZ4_compress_fast_extState(void *state, const char *source, char *dest, int inputSize, int maxDestSize, int acceleration)
int MLZ4_decompress_safe(const char *source, char *dest, int compressedSize, int maxDecompressedSize)
int MLZ4_freeStreamDecode(MLZ4_streamDecode_t *MLZ4_stream)
int MLZ4_compress_continue(MLZ4_stream_t *MLZ4_streamPtr, const char *source, char *dest, int inputSize)
int MLZ4_setStreamDecode(MLZ4_streamDecode_t *MLZ4_streamDecode, const char *dictionary, int dictSize)
void MLZ4_resetStream(MLZ4_stream_t *streamPtr)
#define MLZ4_STREAMSIZE_U64
int MLZ4_decompress_fast_continue(MLZ4_streamDecode_t *MLZ4_streamDecode, const char *source, char *dest, int originalSize)
int MLZ4_compress_withState(void *state, const char *source, char *dest, int inputSize)
int MLZ4_freeStream(MLZ4_stream_t *streamPtr)
int MLZ4_compressBound(int inputSize)
int MLZ4_versionNumber(void)
int MLZ4_compress_fast_continue(MLZ4_stream_t *streamPtr, const char *src, char *dst, int srcSize, int maxDstSize, int acceleration)
#define MLZ4_STREAMDECODESIZE_U64
int MLZ4_compress_fast(const char *source, char *dest, int sourceSize, int maxDestSize, int acceleration)
int MLZ4_compress_limitedOutput_continue(MLZ4_stream_t *MLZ4_streamPtr, const char *source, char *dest, int inputSize, int maxOutputSize)
int MLZ4_decompress_safe_usingDict(const char *source, char *dest, int compressedSize, int maxDecompressedSize, const char *dictStart, int dictSize)
int MLZ4_compress(const char *source, char *dest, int sourceSize)
int MLZ4_loadDict(MLZ4_stream_t *streamPtr, const char *dictionary, int dictSize)
int MLZ4_decompress_fast_usingDict(const char *source, char *dest, int originalSize, const char *dictStart, int dictSize)
int MLZ4_compress_default(const char *source, char *dest, int sourceSize, int maxDestSize)
int MLZ4_sizeofState(void)
int MLZ4_decompress_safe_continue(MLZ4_streamDecode_t *MLZ4_streamDecode, const char *source, char *dest, int compressedSize, int maxDecompressedSize)
int MLZ4_compress_limitedOutput_withState(void *state, const char *source, char *dest, int inputSize, int maxOutputSize)
const char char int int maxOutputSize
const char char int inputSize
char * MLZ4_slideInputBuffer(void *MLZ4_Data)
int MLZ4_resetStreamState(void *state, char *inputBuffer)
int MLZ4_decompress_safe_withPrefix64k(const char *source, char *dest, int compressedSize, int maxOutputSize)
void * MLZ4_create(char *inputBuffer)
int MLZ4_sizeofStreamState()
int MLZ4_decompress_fast_withPrefix64k(const char *source, char *dest, int originalSize)