NVBIO
|
Go to the source code of this file.
Classes | |
struct | LZ4_stream_t_internal |
struct | LZ4_streamDecode_t_internal |
Macros | |
#define | HEAPMODE 0 |
#define | LZ4_UNALIGNED_ACCESS 0 |
#define | restrict /* Disable restrict */ |
#define | FORCE_INLINE static |
#define | GCC_VERSION (__GNUC__ * 100 + __GNUC_MINOR__) |
#define | expect(expr, value) (expr) |
#define | likely(expr) expect((expr) != 0, 1) |
#define | unlikely(expr) expect((expr) != 0, 0) |
#define | ALLOCATOR(n, s) calloc(n,s) |
#define | FREEMEM free |
#define | MEM_INIT memset |
#define | STEPSIZE sizeof(size_t) |
#define | MINMATCH 4 |
#define | COPYLENGTH 8 |
#define | LASTLITERALS 5 |
#define | MFLIMIT (COPYLENGTH+MINMATCH) |
#define | KB *(1 <<10) |
#define | MB *(1 <<20) |
#define | GB *(1U<<30) |
#define | MAXD_LOG 16 |
#define | MAX_DISTANCE ((1 << MAXD_LOG) - 1) |
#define | ML_BITS 4 |
#define | ML_MASK ((1U<<ML_BITS)-1) |
#define | RUN_BITS (8-ML_BITS) |
#define | RUN_MASK ((1U<<RUN_BITS)-1) |
#define | LZ4_STATIC_ASSERT(c) { enum { LZ4_static_assert = 1/(int)(!!(c)) }; } /* use only *after* variable declarations */ |
#define | LZ4_HASHLOG (LZ4_MEMORY_USAGE-2) |
#define | HASHTABLESIZE (1 << LZ4_MEMORY_USAGE) |
#define | HASH_SIZE_U32 (1 << LZ4_HASHLOG) /* required as macro for static allocation */ |
Typedefs | |
typedef unsigned char | BYTE |
typedef unsigned short | U16 |
typedef unsigned int | U32 |
typedef signed int | S32 |
typedef unsigned long long | U64 |
Enumerations | |
enum | limitedOutput_directive { notLimited = 0, limitedOutput = 1, noLimit = 0, limitedOutput = 1 } |
enum | tableType_t { byPtr, byU32, byU16 } |
enum | dict_directive { noDict = 0, withPrefix64k, usingExtDict } |
enum | dictIssue_directive { noDictIssue = 0, dictSmall } |
enum | endCondition_directive { endOnOutputSize = 0, endOnInputSize = 1 } |
enum | earlyEnd_directive { full = 0, partial = 1 } |
Functions | |
int | LZ4_versionNumber (void) |
int | LZ4_compressBound (int isize) |
int | LZ4_compress (const char *source, char *dest, int inputSize) |
int | LZ4_compress_limitedOutput (const char *source, char *dest, int inputSize, int maxOutputSize) |
void | LZ4_resetStream (LZ4_stream_t *LZ4_stream) |
LZ4_stream_t * | LZ4_createStream (void) |
int | LZ4_freeStream (LZ4_stream_t *LZ4_stream) |
int | LZ4_loadDict (LZ4_stream_t *LZ4_dict, const char *dictionary, int dictSize) |
FORCE_INLINE int | LZ4_compress_continue_generic (void *LZ4_stream, const char *source, char *dest, int inputSize, int maxOutputSize, limitedOutput_directive limit) |
int | LZ4_compress_continue (LZ4_stream_t *LZ4_stream, const char *source, char *dest, int inputSize) |
int | LZ4_compress_limitedOutput_continue (LZ4_stream_t *LZ4_stream, const char *source, char *dest, int inputSize, int maxOutputSize) |
int | LZ4_compress_forceExtDict (LZ4_stream_t *LZ4_dict, const char *source, char *dest, int inputSize) |
int | LZ4_saveDict (LZ4_stream_t *LZ4_dict, char *safeBuffer, int dictSize) |
FORCE_INLINE int | LZ4_decompress_generic (const char *const source, char *const dest, int inputSize, int outputSize, int endOnInput, int partialDecoding, int targetOutputSize, int dict, const BYTE *const lowPrefix, const BYTE *const dictStart, const size_t dictSize) |
int | LZ4_decompress_safe (const char *source, char *dest, int compressedSize, int maxDecompressedSize) |
int | LZ4_decompress_safe_partial (const char *source, char *dest, int compressedSize, int targetOutputSize, int maxDecompressedSize) |
int | LZ4_decompress_fast (const char *source, char *dest, int originalSize) |
LZ4_streamDecode_t * | LZ4_createStreamDecode (void) |
int | LZ4_freeStreamDecode (LZ4_streamDecode_t *LZ4_stream) |
int | LZ4_setStreamDecode (LZ4_streamDecode_t *LZ4_streamDecode, const char *dictionary, int dictSize) |
int | LZ4_decompress_safe_continue (LZ4_streamDecode_t *LZ4_streamDecode, const char *source, char *dest, int compressedSize, int maxOutputSize) |
int | LZ4_decompress_fast_continue (LZ4_streamDecode_t *LZ4_streamDecode, const char *source, char *dest, int originalSize) |
FORCE_INLINE int | LZ4_decompress_usingDict_generic (const char *source, char *dest, int compressedSize, int maxOutputSize, int safe, const char *dictStart, int dictSize) |
int | LZ4_decompress_safe_usingDict (const char *source, char *dest, int compressedSize, int maxOutputSize, const char *dictStart, int dictSize) |
int | LZ4_decompress_fast_usingDict (const char *source, char *dest, int originalSize, const char *dictStart, int dictSize) |
int | LZ4_decompress_safe_forceExtDict (const char *source, char *dest, int compressedSize, int maxOutputSize, const char *dictStart, int dictSize) |
int | LZ4_uncompress (const char *source, char *dest, int outputSize) |
int | LZ4_uncompress_unknownOutputSize (const char *source, char *dest, int isize, int maxOutputSize) |
int | LZ4_sizeofStreamState () |
int | LZ4_resetStreamState (void *state, const char *inputBuffer) |
void * | LZ4_create (const char *inputBuffer) |
char * | LZ4_slideInputBuffer (void *LZ4_Data) |
int | LZ4_sizeofState () |
int | LZ4_compress_withState (void *state, const char *source, char *dest, int inputSize) |
int | LZ4_compress_limitedOutput_withState (void *state, const char *source, char *dest, int inputSize, int maxOutputSize) |
int | LZ4_decompress_safe_withPrefix64k (const char *source, char *dest, int compressedSize, int maxOutputSize) |
int | LZ4_decompress_fast_withPrefix64k (const char *source, char *dest, int originalSize) |
#define HASH_SIZE_U32 (1 << LZ4_HASHLOG) /* required as macro for static allocation */ |
#define HASHTABLESIZE (1 << LZ4_MEMORY_USAGE) |
#define LZ4_HASHLOG (LZ4_MEMORY_USAGE-2) |
#define LZ4_STATIC_ASSERT | ( | c) | { enum { LZ4_static_assert = 1/(int)(!!(c)) }; } /* use only *after* variable declarations */ |
#define MFLIMIT (COPYLENGTH+MINMATCH) |
enum dict_directive |
enum dictIssue_directive |
enum earlyEnd_directive |
enum tableType_t |
int LZ4_compress | ( | const char * | source, |
char * | dest, | ||
int | inputSize | ||
) |
int LZ4_compress_continue | ( | LZ4_stream_t * | LZ4_stream, |
const char * | source, | ||
char * | dest, | ||
int | inputSize | ||
) |
FORCE_INLINE int LZ4_compress_continue_generic | ( | void * | LZ4_stream, |
const char * | source, | ||
char * | dest, | ||
int | inputSize, | ||
int | maxOutputSize, | ||
limitedOutput_directive | limit | ||
) |
int LZ4_compress_forceExtDict | ( | LZ4_stream_t * | LZ4_dict, |
const char * | source, | ||
char * | dest, | ||
int | inputSize | ||
) |
int LZ4_compress_limitedOutput | ( | const char * | source, |
char * | dest, | ||
int | inputSize, | ||
int | maxOutputSize | ||
) |
int LZ4_compress_limitedOutput_continue | ( | LZ4_stream_t * | LZ4_stream, |
const char * | source, | ||
char * | dest, | ||
int | inputSize, | ||
int | maxOutputSize | ||
) |
int LZ4_compress_limitedOutput_withState | ( | void * | state, |
const char * | source, | ||
char * | dest, | ||
int | inputSize, | ||
int | maxOutputSize | ||
) |
int LZ4_compress_withState | ( | void * | state, |
const char * | source, | ||
char * | dest, | ||
int | inputSize | ||
) |
LZ4_stream_t* LZ4_createStream | ( | void | ) |
LZ4_streamDecode_t* LZ4_createStreamDecode | ( | void | ) |
int LZ4_decompress_fast | ( | const char * | source, |
char * | dest, | ||
int | originalSize | ||
) |
int LZ4_decompress_fast_continue | ( | LZ4_streamDecode_t * | LZ4_streamDecode, |
const char * | source, | ||
char * | dest, | ||
int | originalSize | ||
) |
int LZ4_decompress_fast_withPrefix64k | ( | const char * | source, |
char * | dest, | ||
int | originalSize | ||
) |
int LZ4_decompress_safe | ( | const char * | source, |
char * | dest, | ||
int | compressedSize, | ||
int | maxDecompressedSize | ||
) |
int LZ4_decompress_safe_continue | ( | LZ4_streamDecode_t * | LZ4_streamDecode, |
const char * | source, | ||
char * | dest, | ||
int | compressedSize, | ||
int | maxOutputSize | ||
) |
int LZ4_decompress_safe_partial | ( | const char * | source, |
char * | dest, | ||
int | compressedSize, | ||
int | targetOutputSize, | ||
int | maxDecompressedSize | ||
) |
int LZ4_decompress_safe_withPrefix64k | ( | const char * | source, |
char * | dest, | ||
int | compressedSize, | ||
int | maxOutputSize | ||
) |
FORCE_INLINE int LZ4_decompress_usingDict_generic | ( | const char * | source, |
char * | dest, | ||
int | compressedSize, | ||
int | maxOutputSize, | ||
int | safe, | ||
const char * | dictStart, | ||
int | dictSize | ||
) |
int LZ4_freeStream | ( | LZ4_stream_t * | LZ4_stream) |
int LZ4_freeStreamDecode | ( | LZ4_streamDecode_t * | LZ4_stream) |
int LZ4_loadDict | ( | LZ4_stream_t * | LZ4_dict, |
const char * | dictionary, | ||
int | dictSize | ||
) |
void LZ4_resetStream | ( | LZ4_stream_t * | LZ4_stream) |
int LZ4_resetStreamState | ( | void * | state, |
const char * | inputBuffer | ||
) |
int LZ4_saveDict | ( | LZ4_stream_t * | LZ4_dict, |
char * | safeBuffer, | ||
int | dictSize | ||
) |
int LZ4_setStreamDecode | ( | LZ4_streamDecode_t * | LZ4_streamDecode, |
const char * | dictionary, | ||
int | dictSize | ||
) |
int LZ4_uncompress | ( | const char * | source, |
char * | dest, | ||
int | outputSize | ||
) |
int LZ4_uncompress_unknownOutputSize | ( | const char * | source, |
char * | dest, | ||
int | isize, | ||
int | maxOutputSize | ||
) |