35 #if defined (__cplusplus) 39 #ifndef LZ4_H_2983827168210 40 #define LZ4_H_2983827168210 78 #if defined(LZ4_DLL_EXPORT) && (LZ4_DLL_EXPORT==1) 79 # define LZ4LIB_API __declspec(dllexport) 80 #elif defined(LZ4_DLL_IMPORT) && (LZ4_DLL_IMPORT==1) 81 # define LZ4LIB_API __declspec(dllimport) 82 #elif defined(__GNUC__) && (__GNUC__ >= 4) 83 # define LZ4LIB_API __attribute__ ((__visibility__ ("default"))) 90 #define LZ4_VERSION_MAJOR 1 91 #define LZ4_VERSION_MINOR 8 92 #define LZ4_VERSION_RELEASE 0 94 #define LZ4_VERSION_NUMBER (LZ4_VERSION_MAJOR *100*100 + LZ4_VERSION_MINOR *100 + LZ4_VERSION_RELEASE) 96 #define LZ4_LIB_VERSION LZ4_VERSION_MAJOR.LZ4_VERSION_MINOR.LZ4_VERSION_RELEASE 97 #define LZ4_QUOTE(str) #str 98 #define LZ4_EXPAND_AND_QUOTE(str) LZ4_QUOTE(str) 99 #define LZ4_VERSION_STRING LZ4_EXPAND_AND_QUOTE(LZ4_LIB_VERSION) 115 #ifndef LZ4_MEMORY_USAGE 116 # define LZ4_MEMORY_USAGE 14 152 #define LZ4_MAX_INPUT_SIZE 0x7E000000 153 #define LZ4_COMPRESSBOUND(isize) ((unsigned)(isize) > (unsigned)LZ4_MAX_INPUT_SIZE ? 0 : (isize) + ((isize)/255) + 16) 334 #define LZ4_HASHLOG (LZ4_MEMORY_USAGE-2) 335 #define LZ4_HASHTABLESIZE (1 << LZ4_MEMORY_USAGE) 336 #define LZ4_HASH_SIZE_U32 (1 << LZ4_HASHLOG) 338 #if defined(__cplusplus) || (defined (__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L) ) 385 #define LZ4_STREAMSIZE_U64 ((1 << (LZ4_MEMORY_USAGE-3)) + 4) 386 #define LZ4_STREAMSIZE (LZ4_STREAMSIZE_U64 * sizeof(unsigned long long)) 401 #define LZ4_STREAMDECODESIZE_U64 4 402 #define LZ4_STREAMDECODESIZE (LZ4_STREAMDECODESIZE_U64 * sizeof(unsigned long long)) 419 #ifdef LZ4_DISABLE_DEPRECATE_WARNINGS 420 # define LZ4_DEPRECATED(message) 422 # define LZ4_GCC_VERSION (__GNUC__ * 100 + __GNUC_MINOR__) 423 # if defined (__cplusplus) && (__cplusplus >= 201402) 424 # define LZ4_DEPRECATED(message) [[deprecated(message)]] 425 # elif (LZ4_GCC_VERSION >= 405) || defined(__clang__) 426 # define LZ4_DEPRECATED(message) __attribute__((deprecated(message))) 427 # elif (LZ4_GCC_VERSION >= 301) 428 # define LZ4_DEPRECATED(message) __attribute__((deprecated)) 429 # elif defined(_MSC_VER) 430 # define LZ4_DEPRECATED(message) __declspec(deprecated(message)) 432 # pragma message("WARNING: You need to implement LZ4_DEPRECATED for this compiler") 433 # define LZ4_DEPRECATED(message) 461 #if defined (__cplusplus)
void * LZ4_create(char *inputBuffer)
char * LZ4_slideInputBuffer(void *LZ4_Data)
LZ4_streamDecode_t_internal internal_donotuse
int LZ4_compress_limitedOutput(const char *source, char *dest, int inputSize, int maxOutputSize)
#define LZ4_HASH_SIZE_U32
unsigned int currentOffset
LZ4LIB_API int LZ4_sizeofState(void)
LZ4LIB_API void LZ4_resetStream(LZ4_stream_t *streamPtr)
int LZ4_resetStreamState(void *state, char *inputBuffer)
int LZ4_uncompress_unknownOutputSize(const char *source, char *dest, int isize, int maxOutputSize)
LZ4LIB_API char * inputBuffer
#define LZ4_STREAMSIZE_U64
LZ4LIB_API int LZ4_decompress_safe_continue(LZ4_streamDecode_t *LZ4_streamDecode, const char *source, char *dest, int compressedSize, int maxDecompressedSize)
unsigned char * bufferStart
#define LZ4_STREAMDECODESIZE_U64
int LZ4_decompress_safe_withPrefix64k(const char *source, char *dest, int compressedSize, int maxOutputSize)
const unsigned char * prefixEnd
int LZ4_uncompress(const char *source, char *dest, int outputSize)
LZ4LIB_API int LZ4_decompress_safe_partial(const char *source, char *dest, int compressedSize, int targetOutputSize, int maxDecompressedSize)
int LZ4_decompress_fast_withPrefix64k(const char *source, char *dest, int originalSize)
const unsigned char * externalDict
LZ4LIB_API char int originalSize
LZ4LIB_API char int sourceSize
LZ4LIB_API int LZ4_decompress_fast_continue(LZ4_streamDecode_t *LZ4_streamDecode, const char *source, char *dest, int originalSize)
int LZ4_compress_withState(void *state, const char *src, char *dst, int srcSize)
LZ4LIB_API int LZ4_compress_fast_extState(void *state, const char *source, char *dest, int inputSize, int maxDestSize, int acceleration)
LZ4LIB_API int LZ4_compress_fast_continue(LZ4_stream_t *streamPtr, const char *src, char *dst, int srcSize, int dstCapacity, int acceleration)
#define LZ4_DEPRECATED(message)
LZ4LIB_API int LZ4_freeStream(LZ4_stream_t *streamPtr)
LZ4LIB_API LZ4_stream_t * LZ4_createStream(void)
LZ4LIB_API const char * LZ4_versionString(void)
LZ4LIB_API int LZ4_compress_default(const char *source, char *dest, int sourceSize, int maxDestSize)
LZ4LIB_API char int isize
LZ4_stream_t_internal internal_donotuse
int LZ4_compress_continue(LZ4_stream_t *LZ4_stream, const char *source, char *dest, int inputSize)
LZ4LIB_API int LZ4_saveDict(LZ4_stream_t *streamPtr, char *safeBuffer, int dictSize)
LZ4LIB_API char int compressedSize
LZ4LIB_API int LZ4_decompress_fast_usingDict(const char *source, char *dest, int originalSize, const char *dictStart, int dictSize)
LZ4LIB_API int LZ4_versionNumber(void)
GLenum GLenum GLsizei void * table
LZ4LIB_API int LZ4_compress_fast(const char *source, char *dest, int sourceSize, int maxDestSize, int acceleration)
LZ4LIB_API const char char int inputSize
int LZ4_compress_limitedOutput_withState(void *state, const char *src, char *dst, int srcSize, int dstSize)
LZ4LIB_API char int outputSize
LZ4LIB_API int LZ4_compress_destSize(const char *source, char *dest, int *sourceSizePtr, int targetDestSize)
LZ4LIB_API char int int maxDstSize
LZ4LIB_API char int int maxOutputSize
int LZ4_sizeofStreamState()
int LZ4_compress_limitedOutput_continue(LZ4_stream_t *LZ4_stream, const char *src, char *dst, int srcSize, int maxDstSize)
LZ4LIB_API int LZ4_decompress_safe_usingDict(const char *source, char *dest, int compressedSize, int maxDecompressedSize, const char *dictStart, int dictSize)
LZ4LIB_API LZ4_streamDecode_t * LZ4_createStreamDecode(void)
int LZ4_compress(const char *source, char *dest, int inputSize)
GLsizei GLsizei GLchar * source
LZ4LIB_API int LZ4_decompress_fast(const char *source, char *dest, int originalSize)
LZ4LIB_API int LZ4_loadDict(LZ4_stream_t *streamPtr, const char *dictionary, int dictSize)
LZ4LIB_API int LZ4_decompress_safe(const char *source, char *dest, int compressedSize, int maxDecompressedSize)
const unsigned char * dictionary
LZ4LIB_API int LZ4_setStreamDecode(LZ4_streamDecode_t *LZ4_streamDecode, const char *dictionary, int dictSize)
LZ4LIB_API int LZ4_freeStreamDecode(LZ4_streamDecode_t *LZ4_stream)
LZ4LIB_API int LZ4_compressBound(int inputSize)