35 #if defined (__cplusplus) 39 #ifndef LZ4_H_2983827168210 40 #define LZ4_H_2983827168210 85 #ifndef LZ4LIB_VISIBILITY 86 # if defined(__GNUC__) && (__GNUC__ >= 4) 87 # define LZ4LIB_VISIBILITY __attribute__ ((visibility ("default"))) 89 # define LZ4LIB_VISIBILITY 104 #define LZ4_VERSION_MAJOR 1 105 #define LZ4_VERSION_MINOR 9 106 #define LZ4_VERSION_RELEASE 3 108 #define LZ4_VERSION_NUMBER (LZ4_VERSION_MAJOR *100*100 + LZ4_VERSION_MINOR *100 + LZ4_VERSION_RELEASE) 110 #define LZ4_LIB_VERSION LZ4_VERSION_MAJOR.LZ4_VERSION_MINOR.LZ4_VERSION_RELEASE 111 #define LZ4_QUOTE(str) #str 112 #define LZ4_EXPAND_AND_QUOTE(str) LZ4_QUOTE(str) 113 #define LZ4_VERSION_STRING LZ4_EXPAND_AND_QUOTE(LZ4_LIB_VERSION) 129 #ifndef LZ4_MEMORY_USAGE 130 # define LZ4_MEMORY_USAGE 14 173 #define LZ4_MAX_INPUT_SIZE 0x7E000000 174 #define LZ4_COMPRESSBOUND(isize) ((unsigned)(isize) > (unsigned)LZ4_MAX_INPUT_SIZE ? 0 : (isize) + ((isize)/255) + 16) 385 #define LZ4_DECODER_RING_BUFFER_SIZE(maxBlockSize) (65536 + 14 + (maxBlockSize)) 452 #ifdef LZ4_STATIC_LINKING_ONLY 454 #ifndef LZ4_STATIC_3504398509 455 #define LZ4_STATIC_3504398509 457 #ifdef LZ4_PUBLISH_STATIC_FUNCTIONS 458 #define LZ4LIB_STATIC_API LZ4LIB_API 460 #define LZ4LIB_STATIC_API 474 LZ4LIB_STATIC_API
int LZ4_compress_fast_extState_fastReset (
void* state,
const char* src,
char*
dst,
int srcSize,
int dstCapacity,
int acceleration);
556 #define LZ4_DECOMPRESS_INPLACE_MARGIN(compressedSize) (((compressedSize) >> 8) + 32) 557 #define LZ4_DECOMPRESS_INPLACE_BUFFER_SIZE(decompressedSize) ((decompressedSize) + LZ4_DECOMPRESS_INPLACE_MARGIN(decompressedSize)) 559 #ifndef LZ4_DISTANCE_MAX 560 # define LZ4_DISTANCE_MAX 65535 563 #define LZ4_COMPRESS_INPLACE_MARGIN (LZ4_DISTANCE_MAX + 32) 564 #define LZ4_COMPRESS_INPLACE_BUFFER_SIZE(maxCompressedSize) ((maxCompressedSize) + LZ4_COMPRESS_INPLACE_MARGIN) 571 #ifndef LZ4_H_98237428734687 572 #define LZ4_H_98237428734687 581 #define LZ4_HASHLOG (LZ4_MEMORY_USAGE-2) 582 #define LZ4_HASHTABLESIZE (1 << LZ4_MEMORY_USAGE) 583 #define LZ4_HASH_SIZE_U32 (1 << LZ4_HASHLOG) 585 #if defined(__cplusplus) || (defined (__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L) ) 626 #define LZ4_STREAMSIZE 16416 627 #define LZ4_STREAMSIZE_VOIDP (LZ4_STREAMSIZE / sizeof(void*)) 658 #define LZ4_STREAMDECODESIZE_U64 (4 + ((sizeof(void*)==16) ? 2 : 0) ) 659 #define LZ4_STREAMDECODESIZE (LZ4_STREAMDECODESIZE_U64 * sizeof(unsigned long long)) 682 #ifdef LZ4_DISABLE_DEPRECATE_WARNINGS 683 # define LZ4_DEPRECATED(message) 685 # if defined (__cplusplus) && (__cplusplus >= 201402) 686 # define LZ4_DEPRECATED(message) [[deprecated(message)]] 687 # elif defined(_MSC_VER) 688 # define LZ4_DEPRECATED(message) __declspec(deprecated(message)) 689 # elif defined(__clang__) || (defined(__GNUC__) && (__GNUC__ * 10 + __GNUC_MINOR__ >= 45)) 690 # define LZ4_DEPRECATED(message) __attribute__((deprecated(message))) 691 # elif defined(__GNUC__) && (__GNUC__ * 10 + __GNUC_MINOR__ >= 31) 692 # define LZ4_DEPRECATED(message) __attribute__((deprecated)) 694 # pragma message("WARNING: LZ4_DEPRECATED needs custom implementation for this compiler") 695 # define LZ4_DEPRECATED(message) 775 #if defined (__cplusplus) LZ4LIB_API LZ4_stream_t * LZ4_initStream(void *buffer, size_t size)
const LZ4_byte * externalDict
Definition: bslz4.h:609
LZ4LIB_API int LZ4_versionNumber(void)
char * dest
Definition: bslz4.h:700
LZ4LIB_API int LZ4_compress_default(const char *src, char *dst, int srcSize, int dstCapacity)
unsigned char LZ4_byte
Definition: bslz4.h:593
LZ4LIB_API int LZ4_compress_fast(const char *src, char *dst, int srcSize, int dstCapacity, int acceleration)
LZ4LIB_API int LZ4_freeStreamDecode(LZ4_streamDecode_t *LZ4_stream)
const char * source
Definition: bslz4.h:702
const LZ4_byte * dictionary
Definition: bslz4.h:603
LZ4LIB_API int LZ4_saveDict(LZ4_stream_t *streamPtr, char *safeBuffer, int maxDictSize)
signed char LZ4_i8
Definition: bslz4.h:592
size_t prefixSize
Definition: bslz4.h:612
char int originalSize
Definition: bslz4.h:728
LZ4LIB_API int LZ4_compress_fast_extState(void *state, const char *src, char *dst, int srcSize, int dstCapacity, int acceleration)
LZ4_u32 currentOffset
Definition: bslz4.h:601
const LZ4_stream_t_internal * dictCtx
Definition: bslz4.h:604
LZ4_u32 tableType
Definition: bslz4.h:602
char int outputSize
Definition: bslz4.h:708
char * inputBuffer
Definition: bslz4.h:723
#define LZ4_HASH_SIZE_U32
Definition: bslz4.h:583
LZ4LIB_API int LZ4_loadDict(LZ4_stream_t *streamPtr, const char *dictionary, int dictSize)
char int srcSize
Definition: bslz4.h:700
#define LZ4_DEPRECATED(message)
Definition: bslz4.h:695
size_t extDictSize
Definition: bslz4.h:610
char * dst
Definition: bslz4.h:727
#define LZ4LIB_API
Definition: bslz4.h:101
LZ4_stream_t_internal internal_donotuse
Definition: bslz4.h:630
LZ4LIB_API int LZ4_decompress_safe_continue(LZ4_streamDecode_t *LZ4_streamDecode, const char *src, char *dst, int srcSize, int dstCapacity)
LZ4LIB_API int LZ4_decompress_safe(const char *src, char *dst, int compressedSize, int dstCapacity)
const char char int inputSize
Definition: bslz4.h:702
LZ4LIB_API int LZ4_decompress_fast(const char *src, char *dst, int originalSize)
LZ4LIB_API int LZ4_decompress_fast_usingDict(const char *src, char *dst, int originalSize, const char *dictStart, int dictSize)
char int int maxDstSize
Definition: bslz4.h:727
LZ4LIB_API LZ4_stream_t * LZ4_createStream(void)
LZ4_u32 hashTable[LZ4_HASH_SIZE_U32]
Definition: bslz4.h:600
LZ4LIB_API int LZ4_decompress_safe_partial(const char *src, char *dst, int srcSize, int targetOutputSize, int dstCapacity)
LZ4LIB_API int LZ4_compress_destSize(const char *src, char *dst, int *srcSizePtr, int targetDstSize)
LZ4LIB_API int LZ4_decompress_fast_continue(LZ4_streamDecode_t *LZ4_streamDecode, const char *src, char *dst, int originalSize)
LZ4LIB_API int LZ4_freeStream(LZ4_stream_t *streamPtr)
LZ4LIB_API const char * LZ4_versionString(void)
LZ4LIB_API int LZ4_compress_fast_continue(LZ4_stream_t *streamPtr, const char *src, char *dst, int srcSize, int dstCapacity, int acceleration)
LZ4LIB_API int LZ4_setStreamDecode(LZ4_streamDecode_t *LZ4_streamDecode, const char *dictionary, int dictSize)
LZ4_u32 dictSize
Definition: bslz4.h:605
LZ4_streamDecode_t_internal internal_donotuse
Definition: bslz4.h:662
unsigned short LZ4_u16
Definition: bslz4.h:594
const LZ4_byte * prefixEnd
Definition: bslz4.h:611
LZ4LIB_API LZ4_streamDecode_t * LZ4_createStreamDecode(void)
LZ4LIB_API int LZ4_decoderRingBufferSize(int maxBlockSize)
LZ4LIB_API int LZ4_compressBound(int inputSize)
#define LZ4_STREAMDECODESIZE_U64
Definition: bslz4.h:658
LZ4LIB_API int LZ4_sizeofState(void)
char int compressedSize
Definition: bslz4.h:727
LZ4LIB_API int LZ4_decompress_safe_usingDict(const char *src, char *dst, int srcSize, int dstCapcity, const char *dictStart, int dictSize)
LZ4LIB_API void LZ4_resetStream(LZ4_stream_t *streamPtr)
unsigned int LZ4_u32
Definition: bslz4.h:595
#define LZ4_STREAMSIZE_VOIDP
Definition: bslz4.h:627
char int int maxOutputSize
Definition: bslz4.h:701
char int isize
Definition: bslz4.h:709
LZ4LIB_API void LZ4_resetStream_fast(LZ4_stream_t *streamPtr)