38 # ifdef nx_oss_lz4_EXPORTS 39 # define LZ4_API __declspec(dllexport) 41 # define LZ4_API __declspec(dllimport) 43 #elif defined(__linux__) || defined(__FreeBSD__) || defined(__APPLE__) 44 # define LZ4_API __attribute__((visibility("default"))) 51 #if defined (__cplusplus) 64 LZ4_API
int LZ4_compress_HC (
const char* src,
char* dst,
int srcSize,
int maxDstSize,
int compressionLevel);
84 LZ4_API
int LZ4_sizeofStateHC(
void);
85 LZ4_API
int LZ4_compress_HC_extStateHC(
void* state,
const char* src,
char* dst,
int srcSize,
int maxDstSize,
int compressionLevel);
103 #define LZ4_STREAMHCSIZE 262192 104 #define LZ4_STREAMHCSIZE_SIZET (LZ4_STREAMHCSIZE / sizeof(size_t)) 105 typedef struct {
size_t table[LZ4_STREAMHCSIZE_SIZET]; } LZ4_streamHC_t;
116 LZ4_API LZ4_streamHC_t* LZ4_createStreamHC(
void);
117 LZ4_API
int LZ4_freeStreamHC(LZ4_streamHC_t* streamHCPtr);
126 LZ4_API
void LZ4_resetStreamHC(LZ4_streamHC_t* streamHCPtr,
int compressionLevel);
127 LZ4_API
int LZ4_loadDictHC(LZ4_streamHC_t* streamHCPtr,
const char* dictionary,
int dictSize);
129 LZ4_API
int LZ4_compress_HC_continue(LZ4_streamHC_t* streamHCPtr,
const char* src,
char* dst,
int srcSize,
int maxDstSize);
131 LZ4_API
int LZ4_saveDictHC(LZ4_streamHC_t* streamHCPtr,
char* safeBuffer,
int maxDictSize);
154 LZ4_API
int LZ4_compressHC(
const char* source,
char* dest,
int inputSize);
155 LZ4_API
int LZ4_compressHC_limitedOutput(
const char* source,
char* dest,
int inputSize,
int maxOutputSize);
156 LZ4_API
int LZ4_compressHC2(
const char* source,
char* dest,
int inputSize,
int compressionLevel);
157 LZ4_API
int LZ4_compressHC2_limitedOutput(
const char* source,
char* dest,
int inputSize,
int maxOutputSize,
int compressionLevel);
158 LZ4_API
int LZ4_compressHC_withStateHC(
void* state,
const char* source,
char* dest,
int inputSize);
159 LZ4_API
int LZ4_compressHC_limitedOutput_withStateHC(
void* state,
const char* source,
char* dest,
int inputSize,
int maxOutputSize);
160 LZ4_API
int LZ4_compressHC2_withStateHC(
void* state,
const char* source,
char* dest,
int inputSize,
int compressionLevel);
161 LZ4_API
int LZ4_compressHC2_limitedOutput_withStateHC(
void* state,
const char* source,
char* dest,
int inputSize,
int maxOutputSize,
int compressionLevel);
162 LZ4_API
int LZ4_compressHC_continue(LZ4_streamHC_t* LZ4_streamHCPtr,
const char* source,
char* dest,
int inputSize);
163 LZ4_API
int LZ4_compressHC_limitedOutput_continue(LZ4_streamHC_t* LZ4_streamHCPtr,
const char* source,
char* dest,
int inputSize,
int maxOutputSize);
165 #if defined (__cplusplus)