37 #if defined (__cplusplus)
50 #define LZ4_VERSION_MAJOR 1
51 #define LZ4_VERSION_MINOR 7
52 #define LZ4_VERSION_RELEASE 0
53 #define LZ4_VERSION_NUMBER (LZ4_VERSION_MAJOR *100*100 + LZ4_VERSION_MINOR *100 + LZ4_VERSION_RELEASE)
66 #define LZ4_MEMORY_USAGE 14
74 int LZ4_decompress_safe (
const char* source,
char* dest,
int compressedSize,
int maxDecompressedSize);
105 #define LZ4_MAX_INPUT_SIZE 0x7E000000
106 #define LZ4_COMPRESSBOUND(isize) ((unsigned)(isize) > (unsigned)LZ4_MAX_INPUT_SIZE ? 0 : (isize) + ((isize)/255) + 16)
128 int LZ4_compress_fast (
const char* source,
char* dest,
int sourceSize,
int maxDestSize,
int acceleration);
139 int LZ4_compress_fast_extState (
void* state,
const char* source,
char* dest,
int inputSize,
int maxDestSize,
int acceleration);
181 int LZ4_decompress_safe_partial (
const char* source,
char* dest,
int compressedSize,
int targetOutputSize,
int maxDecompressedSize);
187 #define LZ4_STREAMSIZE_U64 ((1 << (LZ4_MEMORY_USAGE-3)) + 4)
188 #define LZ4_STREAMSIZE (LZ4_STREAMSIZE_U64 * sizeof(long long))
247 #define LZ4_STREAMDECODESIZE_U64 4
248 #define LZ4_STREAMDECODESIZE (LZ4_STREAMDECODESIZE_U64 * sizeof(unsigned long long))
299 int LZ4_decompress_safe_usingDict (
const char* source,
char* dest,
int compressedSize,
int maxDecompressedSize,
const char* dictStart,
int dictSize);
313 #ifndef LZ4_DEPRECATE_WARNING_DEFBLOCK
314 # define LZ4_DEPRECATE_WARNING_DEFBLOCK
315 # define LZ4_GCC_VERSION (__GNUC__ * 100 + __GNUC_MINOR__)
316 # if (LZ4_GCC_VERSION >= 405) || defined(__clang__)
317 # define LZ4_DEPRECATED(message) __attribute__((deprecated(message)))
318 # elif (LZ4_GCC_VERSION >= 301)
319 # define LZ4_DEPRECATED(message) __attribute__((deprecated))
320 # elif defined(_MSC_VER)
321 # define LZ4_DEPRECATED(message) __declspec(deprecated(message))
323 # pragma message("WARNING: You need to implement LZ4_DEPRECATED for this compiler")
324 # define LZ4_DEPRECATED(message)
330 int LZ4_compress (
const char* source,
char* dest,
int sourceSize);
358 #if defined (__cplusplus)
int LZ4_compress_fast_continue(LZ4_stream_t *streamPtr, const char *src, char *dst, int srcSize, int maxDstSize, int acceleration)
int LZ4_decompress_safe_usingDict(const char *source, char *dest, int compressedSize, int maxDecompressedSize, const char *dictStart, int dictSize)
int LZ4_compress_destSize(const char *source, char *dest, int *sourceSizePtr, int targetDestSize)
LZ4_stream_t * LZ4_createStream(void)
int LZ4_decompress_fast_usingDict(const char *source, char *dest, int originalSize, const char *dictStart, int dictSize)
LZ4_streamDecode_t * LZ4_createStreamDecode(void)
#define LZ4_STREAMSIZE_U64
int LZ4_compress(const char *source, char *dest, int sourceSize)
void LZ4_resetStream(LZ4_stream_t *streamPtr)
#define LZ4_STREAMDECODESIZE_U64
int LZ4_decompress_safe(const char *source, char *dest, int compressedSize, int maxDecompressedSize)
int LZ4_compress_default(const char *source, char *dest, int sourceSize, int maxDestSize)
int LZ4_compress_limitedOutput_continue(LZ4_stream_t *LZ4_streamPtr, const char *source, char *dest, int inputSize, int maxOutputSize)
int LZ4_resetStreamState(void *state, char *inputBuffer)
int LZ4_decompress_safe_continue(LZ4_streamDecode_t *LZ4_streamDecode, const char *source, char *dest, int compressedSize, int maxDecompressedSize)
void * LZ4_create(char *inputBuffer)
int LZ4_versionNumber(void)
int LZ4_freeStream(LZ4_stream_t *streamPtr)
char * LZ4_slideInputBuffer(void *state)
int LZ4_decompress_safe_withPrefix64k(const char *src, char *dst, int compressedSize, int maxDstSize)
#define LZ4_DEPRECATED(message)
int LZ4_compress_limitedOutput_withState(void *state, const char *source, char *dest, int inputSize, int maxOutputSize)
int LZ4_compress_continue(LZ4_stream_t *LZ4_streamPtr, const char *source, char *dest, int inputSize)
int LZ4_loadDict(LZ4_stream_t *streamPtr, const char *dictionary, int dictSize)
int LZ4_compress_fast_extState(void *state, const char *source, char *dest, int inputSize, int maxDestSize, int acceleration)
int LZ4_decompress_fast_withPrefix64k(const char *src, char *dst, int originalSize)
int LZ4_compress_withState(void *state, const char *source, char *dest, int inputSize)
int LZ4_sizeofState(void)
int LZ4_saveDict(LZ4_stream_t *streamPtr, char *safeBuffer, int dictSize)
int LZ4_compress_fast(const char *source, char *dest, int sourceSize, int maxDestSize, int acceleration)
int LZ4_decompress_fast(const char *source, char *dest, int originalSize)
int LZ4_compress_limitedOutput(const char *source, char *dest, int sourceSize, int maxOutputSize)
int LZ4_compressBound(int inputSize)
int LZ4_sizeofStreamState(void)
int LZ4_freeStreamDecode(LZ4_streamDecode_t *LZ4_stream)
int LZ4_decompress_safe_partial(const char *source, char *dest, int compressedSize, int targetOutputSize, int maxDecompressedSize)
int LZ4_setStreamDecode(LZ4_streamDecode_t *LZ4_streamDecode, const char *dictionary, int dictSize)
int LZ4_decompress_fast_continue(LZ4_streamDecode_t *LZ4_streamDecode, const char *source, char *dest, int originalSize)