#include <stdlib.h>
#include <string.h>
#include "lz4frame_static.h"
#include "lz4.h"
#include "lz4hc.h"
#include "xxhash.h"
Go to the source code of this file.
|
typedef unsigned char | BYTE |
|
typedef unsigned short | U16 |
|
typedef unsigned int | U32 |
|
typedef signed int | S32 |
|
typedef unsigned long long | U64 |
|
typedef int(* | compressFunc_t )(void *ctx, const char *src, char *dst, int srcSize, int dstSize, int level) |
|
|
enum | LZ4F_lastBlockStatus { notDone,
fromTmpBuffer,
fromSrcBuffer
} |
|
enum | dStage_t {
dstage_getHeader =0,
dstage_storeHeader,
dstage_decodeHeader,
dstage_getCBlockSize,
dstage_storeCBlockSize,
dstage_decodeCBlockSize,
dstage_copyDirect,
dstage_getCBlock,
dstage_storeCBlock,
dstage_decodeCBlock,
dstage_decodeCBlock_intoDst,
dstage_decodeCBlock_intoTmp,
dstage_flushOut,
dstage_getSuffix,
dstage_storeSuffix,
dstage_checkSuffix
} |
|
|
U32 | LZ4F_isError (LZ4F_errorCode_t code) |
|
const char * | LZ4F_getErrorName (LZ4F_errorCode_t code) |
|
size_t | LZ4F_compressFrameBound (size_t srcSize, const LZ4F_preferences_t *preferencesPtr) |
|
size_t | LZ4F_compressFrame (void *dstBuffer, size_t dstMaxSize, const void *srcBuffer, size_t srcSize, const LZ4F_preferences_t *preferencesPtr) |
|
LZ4F_errorCode_t | LZ4F_createCompressionContext (LZ4F_compressionContext_t *LZ4F_compressionContextPtr, unsigned version) |
|
LZ4F_errorCode_t | LZ4F_freeCompressionContext (LZ4F_compressionContext_t LZ4F_compressionContext) |
|
size_t | LZ4F_compressBegin (LZ4F_compressionContext_t compressionContext, void *dstBuffer, size_t dstMaxSize, const LZ4F_preferences_t *preferencesPtr) |
|
size_t | LZ4F_compressBound (size_t srcSize, const LZ4F_preferences_t *preferencesPtr) |
|
size_t | LZ4F_compressUpdate (LZ4F_compressionContext_t compressionContext, void *dstBuffer, size_t dstMaxSize, const void *srcBuffer, size_t srcSize, const LZ4F_compressOptions_t *compressOptionsPtr) |
|
size_t | LZ4F_flush (LZ4F_compressionContext_t compressionContext, void *dstBuffer, size_t dstMaxSize, const LZ4F_compressOptions_t *compressOptionsPtr) |
|
size_t | LZ4F_compressEnd (LZ4F_compressionContext_t compressionContext, void *dstBuffer, size_t dstMaxSize, const LZ4F_compressOptions_t *compressOptionsPtr) |
|
LZ4F_errorCode_t | LZ4F_createDecompressionContext (LZ4F_compressionContext_t *LZ4F_decompressionContextPtr, unsigned versionNumber) |
|
LZ4F_errorCode_t | LZ4F_freeDecompressionContext (LZ4F_compressionContext_t LZ4F_decompressionContext) |
|
LZ4F_errorCode_t | LZ4F_getFrameInfo (LZ4F_decompressionContext_t decompressionContext, LZ4F_frameInfo_t *frameInfoPtr, const void *srcBuffer, size_t *srcSizePtr) |
|
size_t | LZ4F_decompress (LZ4F_decompressionContext_t decompressionContext, void *dstBuffer, size_t *dstSizePtr, const void *srcBuffer, size_t *srcSizePtr, const LZ4F_decompressOptions_t *decompressOptionsPtr) |
|
#define ALLOCATOR |
( |
|
s) | |
calloc(1,s) |
#define GCC_VERSION (__GNUC__ * 100 + __GNUC_MINOR__) |
#define LZ4F_BLOCKSIZEID_DEFAULT max64KB |
#define LZ4F_BLOCKUNCOMPRESSED_FLAG 0x80000000U |
#define LZ4F_GENERATE_STRING |
( |
|
STRING) | |
#STRING, |
#define LZ4F_MAGICNUMBER 0x184D2204U |
#define LZ4F_MAXHEADERFRAME_SIZE 7 |
typedef unsigned char BYTE |
typedef int(* compressFunc_t)(void *ctx, const char *src, char *dst, int srcSize, int dstSize, int level) |
typedef unsigned short U16 |
typedef unsigned long long U64 |
Enumerator |
---|
dstage_getHeader |
|
dstage_storeHeader |
|
dstage_decodeHeader |
|
dstage_getCBlockSize |
|
dstage_storeCBlockSize |
|
dstage_decodeCBlockSize |
|
dstage_copyDirect |
|
dstage_getCBlock |
|
dstage_storeCBlock |
|
dstage_decodeCBlock |
|
dstage_decodeCBlock_intoDst |
|
dstage_decodeCBlock_intoTmp |
|
dstage_flushOut |
|
dstage_getSuffix |
|
dstage_storeSuffix |
|
dstage_checkSuffix |
|
Definition at line 806 of file lz4frame.c.
Enumerator |
---|
notDone |
|
fromTmpBuffer |
|
fromSrcBuffer |
|
Definition at line 508 of file lz4frame.c.
size_t LZ4F_compressFrame |
( |
void * |
dstBuffer, |
|
|
size_t |
dstMaxSize, |
|
|
const void * |
srcBuffer, |
|
|
size_t |
srcSize, |
|
|
const LZ4F_preferences_t * |
preferencesPtr |
|
) |
| |