41 #ifndef LZ4F_H_09782039843 42 #define LZ4F_H_09782039843 44 #if defined (__cplusplus) 68 #if defined(LZ4_DLL_EXPORT) && (LZ4_DLL_EXPORT==1) 69 # define LZ4FLIB_API __declspec(dllexport) 70 #elif defined(LZ4_DLL_IMPORT) && (LZ4_DLL_IMPORT==1) 71 # define LZ4FLIB_API __declspec(dllimport) 72 #elif defined(__GNUC__) && (__GNUC__ >= 4) 73 # define LZ4FLIB_API __attribute__ ((__visibility__ ("default"))) 78 #ifdef LZ4F_DISABLE_DEPRECATE_WARNINGS 79 # define LZ4F_DEPRECATE(x) x 81 # if defined(_MSC_VER) 82 # define LZ4F_DEPRECATE(x) x 83 # elif defined(__clang__) || (defined(__GNUC__) && (__GNUC__ >= 6)) 84 # define LZ4F_DEPRECATE(x) x __attribute__((deprecated)) 86 # define LZ4F_DEPRECATE(x) x 104 #ifndef LZ4F_DISABLE_OBSOLETE_ENUMS 105 # define LZ4F_OBSOLETE_ENUM(x) , LZ4F_DEPRECATE(x) = LZ4F_##x 107 # define LZ4F_OBSOLETE_ENUM(x) 148 #ifndef LZ4F_DISABLE_OBSOLETE_ENUMS 165 unsigned reserved[2];
176 unsigned reserved[4];
210 unsigned reserved[3];
215 #define LZ4F_VERSION 100 231 #define LZ4F_HEADER_SIZE_MAX 15 291 unsigned reserved[3];
336 const void* srcBuffer,
size_t* srcSizePtr);
363 void* dstBuffer,
size_t* dstSizePtr,
364 const void* srcBuffer,
size_t* srcSizePtr,
377 #if defined (__cplusplus) LZ4FLIB_API size_t LZ4F_compressEnd(LZ4F_cctx *cctx, void *dstBuffer, size_t dstCapacity, const LZ4F_compressOptions_t *cOptPtr)
LZ4FLIB_API LZ4F_errorCode_t LZ4F_createCompressionContext(LZ4F_cctx **cctxPtr, unsigned version)
LZ4F_contentChecksum_t contentChecksumFlag
LZ4FLIB_API unsigned LZ4F_isError(LZ4F_errorCode_t code)
LZ4F_frameType_t frameType
LZ4FLIB_API unsigned LZ4F_getVersion(void)
LZ4FLIB_API size_t LZ4F_flush(LZ4F_cctx *cctx, void *dstBuffer, size_t dstCapacity, const LZ4F_compressOptions_t *cOptPtr)
LZ4F_blockSizeID_t blockSizeID_t
LZ4F_blockMode_t blockMode_t
LZ4FLIB_API size_t LZ4F_compressUpdate(LZ4F_cctx *cctx, void *dstBuffer, size_t dstCapacity, const void *srcBuffer, size_t srcSize, const LZ4F_compressOptions_t *cOptPtr)
LZ4FLIB_API size_t LZ4F_getFrameInfo(LZ4F_dctx *dctx, LZ4F_frameInfo_t *frameInfoPtr, const void *srcBuffer, size_t *srcSizePtr)
LZ4F_cctx * LZ4F_compressionContext_t
LZ4F_blockSizeID_t blockSizeID
LZ4F_dctx * LZ4F_decompressionContext_t
LZ4FLIB_API size_t LZ4F_compressBegin(LZ4F_cctx *cctx, void *dstBuffer, size_t dstCapacity, const LZ4F_preferences_t *prefsPtr)
LZ4F_frameInfo_t frameInfo
LZ4F_contentChecksum_t contentChecksum_t
LZ4FLIB_API size_t LZ4F_decompress(LZ4F_dctx *dctx, void *dstBuffer, size_t *dstSizePtr, const void *srcBuffer, size_t *srcSizePtr, const LZ4F_decompressOptions_t *dOptPtr)
LZ4FLIB_API size_t LZ4F_compressBound(size_t srcSize, const LZ4F_preferences_t *prefsPtr)
unsigned long long contentSize
LZ4FLIB_API size_t LZ4F_compressFrameBound(size_t srcSize, const LZ4F_preferences_t *preferencesPtr)
LZ4F_blockMode_t blockMode
LZ4FLIB_API const char * LZ4F_getErrorName(LZ4F_errorCode_t code)
LZ4FLIB_API LZ4F_errorCode_t LZ4F_freeCompressionContext(LZ4F_cctx *cctx)
LZ4FLIB_API void LZ4F_resetDecompressionContext(LZ4F_dctx *dctx)
LZ4FLIB_API size_t LZ4F_compressFrame(void *dstBuffer, size_t dstCapacity, const void *srcBuffer, size_t srcSize, const LZ4F_preferences_t *preferencesPtr)
LZ4FLIB_API LZ4F_errorCode_t LZ4F_freeDecompressionContext(LZ4F_dctx *dctx)
LZ4FLIB_API LZ4F_errorCode_t LZ4F_createDecompressionContext(LZ4F_dctx **dctxPtr, unsigned version)
#define LZ4F_OBSOLETE_ENUM(x)
LZ4F_frameType_t frameType_t