40#if defined (__cplusplus)
44#ifndef LZ4_H_2983827168210
45#define LZ4_H_2983827168210
84#define LZ4LIB_API CORE_API
98#if defined(LZ4_FREESTANDING) && (LZ4_FREESTANDING == 1)
99# define LZ4_HEAPMODE 0
100# define LZ4HC_HEAPMODE 0
101# define LZ4_STATIC_LINKING_ONLY_DISABLE_MEMORY_ALLOCATION 1
102# if !defined(LZ4_memcpy)
103# error "LZ4_FREESTANDING requires macro 'LZ4_memcpy'."
105# if !defined(LZ4_memset)
106# error "LZ4_FREESTANDING requires macro 'LZ4_memset'."
108# if !defined(LZ4_memmove)
109# error "LZ4_FREESTANDING requires macro 'LZ4_memmove'."
111#elif ! defined(LZ4_FREESTANDING)
112# define LZ4_FREESTANDING 0
117#define LZ4_VERSION_MAJOR 1
118#define LZ4_VERSION_MINOR 9
119#define LZ4_VERSION_RELEASE 4
121#define LZ4_VERSION_NUMBER (LZ4_VERSION_MAJOR *100*100 + LZ4_VERSION_MINOR *100 + LZ4_VERSION_RELEASE)
123#define LZ4_LIB_VERSION LZ4_VERSION_MAJOR.LZ4_VERSION_MINOR.LZ4_VERSION_RELEASE
124#define LZ4_QUOTE(str) #str
125#define LZ4_EXPAND_AND_QUOTE(str) LZ4_QUOTE(str)
126#define LZ4_VERSION_STRING LZ4_EXPAND_AND_QUOTE(LZ4_LIB_VERSION)
135#define LZ4_MEMORY_USAGE_MIN 10
136#define LZ4_MEMORY_USAGE_DEFAULT 14
137#define LZ4_MEMORY_USAGE_MAX 20
146#ifndef LZ4_MEMORY_USAGE
147# define LZ4_MEMORY_USAGE LZ4_MEMORY_USAGE_DEFAULT
150#if (LZ4_MEMORY_USAGE < LZ4_MEMORY_USAGE_MIN)
151# error "LZ4_MEMORY_USAGE is too small !"
154#if (LZ4_MEMORY_USAGE > LZ4_MEMORY_USAGE_MAX)
155# error "LZ4_MEMORY_USAGE is too large !"
197#define LZ4_MAX_INPUT_SIZE 0x7E000000
198#define LZ4_COMPRESSBOUND(isize) ((unsigned)(isize) > (unsigned)LZ4_MAX_INPUT_SIZE ? 0 : (isize) + ((isize)/255) + 16)
313#if !defined(RC_INVOKED)
314#if !defined(LZ4_STATIC_LINKING_ONLY_DISABLE_MEMORY_ALLOCATION)
402#if !defined(RC_INVOKED)
403#if !defined(LZ4_STATIC_LINKING_ONLY_DISABLE_MEMORY_ALLOCATION)
430#define LZ4_DECODER_RING_BUFFER_SIZE(maxBlockSize) (65536 + 14 + (maxBlockSize))
459 const char* src,
char*
dst,
474 const char* dictStart,
int dictSize);
480 const char* dictStart,
int dictSize);
509#ifdef LZ4_STATIC_LINKING_ONLY
511#ifndef LZ4_STATIC_3504398509
512#define LZ4_STATIC_3504398509
514#ifdef LZ4_PUBLISH_STATIC_FUNCTIONS
515#define LZ4LIB_STATIC_API LZ4LIB_API
517#define LZ4LIB_STATIC_API
615#define LZ4_DECOMPRESS_INPLACE_MARGIN(compressedSize) (((compressedSize) >> 8) + 32)
616#define LZ4_DECOMPRESS_INPLACE_BUFFER_SIZE(decompressedSize) ((decompressedSize) + LZ4_DECOMPRESS_INPLACE_MARGIN(decompressedSize))
618#ifndef LZ4_DISTANCE_MAX
619# define LZ4_DISTANCE_MAX 65535
622#define LZ4_COMPRESS_INPLACE_MARGIN (LZ4_DISTANCE_MAX + 32)
623#define LZ4_COMPRESS_INPLACE_BUFFER_SIZE(maxCompressedSize) ((maxCompressedSize) + LZ4_COMPRESS_INPLACE_MARGIN)
630#ifndef LZ4_H_98237428734687
631#define LZ4_H_98237428734687
640#define LZ4_HASHLOG (LZ4_MEMORY_USAGE-2)
641#define LZ4_HASHTABLESIZE (1 << LZ4_MEMORY_USAGE)
642#define LZ4_HASH_SIZE_U32 (1 << LZ4_HASHLOG)
644#if defined(__cplusplus) || (defined (__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L) )
673#define LZ4_STREAM_MINSIZE ((1UL << LZ4_MEMORY_USAGE) + 32)
709#define LZ4_STREAMDECODE_MINSIZE 32
727#if defined (__cplusplus)
#define LZ4LIB_API
Definition lz4.h:84
LZ4LIB_API LZ4_stream_t * LZ4_initStream(void *buffer, size_t size)
Definition lz4.cpp:1505
#define LZ4_STREAMDECODE_MINSIZE
Definition lz4.h:709
LZ4LIB_API int LZ4_compress_fast(const char *src, char *dst, int srcSize, int dstCapacity, int acceleration)
Definition lz4.cpp:1414
LZ4LIB_API int LZ4_decompress_safe_partial_usingDict(const char *src, char *dst, int compressedSize, int targetOutputSize, int maxOutputSize, const char *dictStart, int dictSize)
Definition lz4.cpp:2625
LZ4LIB_API const char * LZ4_versionString(void)
Definition lz4.cpp:726
LZ4LIB_API int LZ4_versionNumber(void)
Definition lz4.cpp:725
LZ4LIB_API int LZ4_sizeofState(void)
Definition lz4.cpp:728
#define LZ4_STREAM_MINSIZE
Definition lz4.h:673
LZ4LIB_API int LZ4_compressBound(int inputSize)
Definition lz4.cpp:727
LZ4LIB_API int LZ4_decompress_safe(const char *src, char *dst, int compressedSize, int dstCapacity)
Definition lz4.cpp:2343
unsigned short LZ4_u16
Definition lz4.h:652
LZ4LIB_API int LZ4_compress_fast_extState(void *state, const char *src, char *dst, int srcSize, int dstCapacity, int acceleration)
Definition lz4.cpp:1344
LZ4LIB_API int LZ4_decompress_safe_partial(const char *src, char *dst, int srcSize, int targetOutputSize, int dstCapacity)
Definition lz4.cpp:2351
signed char LZ4_i8
Definition lz4.h:650
LZ4LIB_API void LZ4_resetStream(LZ4_stream_t *streamPtr)
Definition lz4.cpp:1517
unsigned char LZ4_byte
Definition lz4.h:651
LZ4LIB_API int LZ4_compress_destSize(const char *src, char *dst, int *srcSizePtr, int targetDstSize)
Definition lz4.cpp:1459
LZ4LIB_API int LZ4_compress_default(const char *src, char *dst, int srcSize, int dstCapacity)
Definition lz4.cpp:1433
unsigned int LZ4_u32
Definition lz4.h:653
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
LZ4LIB_API int LZ4_compress_fast_continue(LZ4_stream_t *streamPtr, const char *src, char *dst, int srcSize, int dstCapacity, int acceleration)
Definition lz4.cpp:1630
LZ4LIB_API int LZ4_decompress_safe_usingDict(const char *src, char *dst, int srcSize, int dstCapcity, const char *dictStart, int dictSize)
Definition lz4.cpp:2610
char int srcSize
Definition lz4.h:709
char int compressedSize
Definition lz4.h:735
LZ4LIB_API void LZ4_resetStream_fast(LZ4_stream_t *streamPtr)
Definition lz4.cpp:1523
LZ4LIB_API int LZ4_decoderRingBufferSize(int maxBlockSize)
Definition lz4.cpp:2506
LZ4LIB_API int LZ4_freeStreamDecode(LZ4_streamDecode_t *LZ4_stream)
Definition lz4.cpp:2466
LZ4LIB_API int LZ4_saveDict(LZ4_stream_t *streamPtr, char *safeBuffer, int maxDictSize)
Definition lz4.cpp:1737
LZ4LIB_API LZ4_stream_t * LZ4_createStream(void)
Definition lz4.cpp:1484
#define LZ4_HASH_SIZE_U32
Definition lz4.h:579
LZ4LIB_API int LZ4_setStreamDecode(LZ4_streamDecode_t *LZ4_streamDecode, const char *dictionary, int dictSize)
Definition lz4.cpp:2480
LZ4LIB_API int LZ4_freeStream(LZ4_stream_t *streamPtr)
Definition lz4.cpp:1528
const char char int inputSize
Definition lz4.h:711
char * dst
Definition lz4.h:735
LZ4LIB_API LZ4_streamDecode_t * LZ4_createStreamDecode(void)
Definition lz4.cpp:2460
char int int maxOutputSize
Definition lz4.h:710
LZ4LIB_API int LZ4_loadDict(LZ4_stream_t *streamPtr, const char *dictionary, int dictSize)
Definition lz4.cpp:1539
LZ4LIB_API int LZ4_decompress_safe_continue(LZ4_streamDecode_t *LZ4_streamDecode, const char *src, char *dst, int srcSize, int dstCapacity)
Definition lz4.cpp:2522
int LZ4_compress_fast_extState_fastReset(void *state, const char *src, char *dst, int srcSize, int dstCapacity, int acceleration)
Definition lz4.cpp:1376
void LZ4_attach_dictionary(LZ4_stream_t *workingStream, const LZ4_stream_t *dictionaryStream)
Definition lz4.cpp:1581
SIZE_T prefixSize
Definition lz4.h:706
const LZ4_byte * prefixEnd
Definition lz4.h:704
const LZ4_byte * externalDict
Definition lz4.h:703
SIZE_T extDictSize
Definition lz4.h:705
LZ4_u32 tableType
Definition lz4.h:668
LZ4_u32 currentOffset
Definition lz4.h:667
const LZ4_byte * dictionary
Definition lz4.h:665
const LZ4_stream_t_internal * dictCtx
Definition lz4.h:666
LZ4_u32 dictSize
Definition lz4.h:669
LZ4_u32 hashTable[LZ4_HASH_SIZE_U32]
Definition lz4.h:664
LZ4_streamDecode_t_internal internal_donotuse
Definition lz4.h:712
char minStateSize[LZ4_STREAMDECODE_MINSIZE]
Definition lz4.h:711
char minStateSize[LZ4_STREAM_MINSIZE]
Definition lz4.h:675
LZ4_stream_t_internal internal_donotuse
Definition lz4.h:676