#include "lz4.h"
#include <stdlib.h>
#include <string.h>
Classes | |
struct | LZ4_stream_t_internal |
struct | LZ4_streamDecode_t_internal |
Defines | |
#define | HEAPMODE 0 |
#define | ACCELERATION_DEFAULT 1 |
#define | FORCE_INLINE static |
#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)) }; } |
#define | LZ4_HASHLOG (LZ4_MEMORY_USAGE-2) |
#define | HASHTABLESIZE (1 << LZ4_MEMORY_USAGE) |
#define | HASH_SIZE_U32 (1 << LZ4_HASHLOG) |
#define | HASH_UNIT sizeof(size_t) |
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 } |
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 | |
static unsigned | LZ4_64bits (void) |
static unsigned | LZ4_isLittleEndian (void) |
static U16 | LZ4_read16 (const void *memPtr) |
static U16 | LZ4_readLE16 (const void *memPtr) |
static void | LZ4_writeLE16 (void *memPtr, U16 value) |
static U32 | LZ4_read32 (const void *memPtr) |
static U64 | LZ4_read64 (const void *memPtr) |
static size_t | LZ4_read_ARCH (const void *p) |
static void | LZ4_copy4 (void *dstPtr, const void *srcPtr) |
static void | LZ4_copy8 (void *dstPtr, const void *srcPtr) |
static void | LZ4_wildCopy (void *dstPtr, const void *srcPtr, void *dstEnd) |
static unsigned | LZ4_NbCommonBytes (register size_t val) |
static unsigned | LZ4_count (const BYTE *pIn, const BYTE *pMatch, const BYTE *pInLimit) |
int | LZ4_versionNumber (void) |
int | LZ4_compressBound (int isize) |
int | LZ4_sizeofState () |
static U32 | LZ4_hashSequence (U32 sequence, tableType_t const tableType) |
static U32 | LZ4_hashSequence64 (size_t sequence, tableType_t const tableType) |
static U32 | LZ4_hashSequenceT (size_t sequence, tableType_t const tableType) |
static U32 | LZ4_hashPosition (const void *p, tableType_t tableType) |
static void | LZ4_putPositionOnHash (const BYTE *p, U32 h, void *tableBase, tableType_t const tableType, const BYTE *srcBase) |
static void | LZ4_putPosition (const BYTE *p, void *tableBase, tableType_t tableType, const BYTE *srcBase) |
static const BYTE * | LZ4_getPositionOnHash (U32 h, void *tableBase, tableType_t tableType, const BYTE *srcBase) |
static const BYTE * | LZ4_getPosition (const BYTE *p, void *tableBase, tableType_t tableType, const BYTE *srcBase) |
FORCE_INLINE int | LZ4_compress_generic (void *const ctx, const char *const source, char *const dest, const int inputSize, const int maxOutputSize, const limitedOutput_directive outputLimited, const tableType_t tableType, const dict_directive dict, const dictIssue_directive dictIssue, const U32 acceleration) |
int | LZ4_compress_fast_extState (void *state, const char *source, char *dest, int inputSize, int maxOutputSize, int acceleration) |
int | LZ4_compress_fast (const char *source, char *dest, int inputSize, int maxOutputSize, int acceleration) |
int | LZ4_compress_default (const char *source, char *dest, int inputSize, int maxOutputSize) |
int | LZ4_compress_fast_force (const char *source, char *dest, int inputSize, int maxOutputSize, int acceleration) |
static int | LZ4_compress_destSize_generic (void *const ctx, const char *const src, char *const dst, int *const srcSizePtr, const int targetDstSize, const tableType_t tableType) |
static int | LZ4_compress_destSize_extState (void *state, const char *src, char *dst, int *srcSizePtr, int targetDstSize) |
int | LZ4_compress_destSize (const char *src, char *dst, int *srcSizePtr, int targetDstSize) |
LZ4_stream_t * | LZ4_createStream (void) |
void | LZ4_resetStream (LZ4_stream_t *LZ4_stream) |
int | LZ4_freeStream (LZ4_stream_t *LZ4_stream) |
int | LZ4_loadDict (LZ4_stream_t *LZ4_dict, const char *dictionary, int dictSize) |
static void | LZ4_renormDictT (LZ4_stream_t_internal *LZ4_dict, const BYTE *src) |
int | LZ4_compress_fast_continue (LZ4_stream_t *LZ4_stream, const char *source, char *dest, int inputSize, int maxOutputSize, int acceleration) |
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_compress_limitedOutput (const char *source, char *dest, int inputSize, int maxOutputSize) |
int | LZ4_compress (const char *source, char *dest, int inputSize) |
int | LZ4_compress_limitedOutput_withState (void *state, const char *src, char *dst, int srcSize, int dstSize) |
int | LZ4_compress_withState (void *state, const char *src, char *dst, int srcSize) |
int | LZ4_compress_limitedOutput_continue (LZ4_stream_t *LZ4_stream, const char *src, char *dst, int srcSize, int maxDstSize) |
int | LZ4_compress_continue (LZ4_stream_t *LZ4_stream, const char *source, char *dest, int inputSize) |
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 () |
static void | LZ4_init (LZ4_stream_t_internal *lz4ds, BYTE *base) |
int | LZ4_resetStreamState (void *state, char *inputBuffer) |
void * | LZ4_create (char *inputBuffer) |
char * | LZ4_slideInputBuffer (void *LZ4_Data) |
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) |
Variables | |
static const int | LZ4_minLength = (MFLIMIT+1) |
static const int | LZ4_64Klimit = ((64 KB) + (MFLIMIT-1)) |
static const U32 | LZ4_skipTrigger = 6 |
static const U64 | prime5bytes = 889523592379ULL |
#define ACCELERATION_DEFAULT 1 |
Referenced by LZ4_compress_fast_continue(), and LZ4_compress_fast_extState().
#define ALLOCATOR | ( | n, | |||
s | ) | calloc(n,s) |
Referenced by LZ4_compress_destSize(), LZ4_compress_fast(), LZ4_create(), LZ4_createStream(), and LZ4_createStreamDecode().
#define COPYLENGTH 8 |
Referenced by LZ4_decompress_generic().
#define expect | ( | expr, | |||
value | ) | (expr) |
#define FORCE_INLINE static |
#define FREEMEM free |
Referenced by LZ4_compress_destSize(), LZ4_compress_fast(), LZ4_freeStream(), and LZ4_freeStreamDecode().
#define GB *(1U<<30) |
Referenced by LZ4_loadDict().
#define HASH_SIZE_U32 (1 << LZ4_HASHLOG) |
Referenced by LZ4_renormDictT().
#define HASH_UNIT sizeof(size_t) |
Referenced by LZ4_loadDict().
#define HASHTABLESIZE (1 << LZ4_MEMORY_USAGE) |
#define HEAPMODE 0 |
#define KB *(1 <<10) |
#define LASTLITERALS 5 |
Referenced by LZ4_compress_destSize_generic(), LZ4_compress_generic(), and LZ4_decompress_generic().
#define likely | ( | expr | ) | expect((expr) != 0, 1) |
Referenced by LZ4_count(), and LZ4_decompress_generic().
#define LZ4_HASHLOG (LZ4_MEMORY_USAGE-2) |
Referenced by LZ4_hashSequence(), and LZ4_hashSequence64().
#define LZ4_STATIC_ASSERT | ( | c | ) | { enum { LZ4_static_assert = 1/(int)(!!(c)) }; } |
Referenced by LZ4_createStream().
#define MAX_DISTANCE ((1 << MAXD_LOG) - 1) |
Referenced by LZ4_compress_destSize_generic(), and LZ4_compress_generic().
#define MAXD_LOG 16 |
#define MB *(1 <<20) |
#define MEM_INIT memset |
Referenced by LZ4_init(), and LZ4_resetStream().
#define MFLIMIT (COPYLENGTH+MINMATCH) |
Referenced by LZ4_compress_destSize_generic(), LZ4_compress_generic(), and LZ4_decompress_generic().
#define MINMATCH 4 |
Referenced by LZ4_compress_destSize_generic(), LZ4_compress_generic(), LZ4_decompress_generic(), and LZ4_hashSequence().
#define ML_BITS 4 |
Referenced by LZ4_compress_destSize_generic(), LZ4_compress_generic(), and LZ4_decompress_generic().
#define ML_MASK ((1U<<ML_BITS)-1) |
Referenced by LZ4_compress_destSize_generic(), LZ4_compress_generic(), and LZ4_decompress_generic().
#define RUN_BITS (8-ML_BITS) |
#define RUN_MASK ((1U<<RUN_BITS)-1) |
Referenced by LZ4_compress_destSize_generic(), LZ4_compress_generic(), and LZ4_decompress_generic().
#define STEPSIZE sizeof(size_t) |
Referenced by LZ4_count().
#define unlikely | ( | expr | ) | expect((expr) != 0, 0) |
Referenced by LZ4_compress_destSize_generic(), LZ4_compress_generic(), and LZ4_decompress_generic().
typedef unsigned char BYTE |
typedef unsigned short U16 |
enum dict_directive |
enum dictIssue_directive |
enum earlyEnd_directive |
enum tableType_t |
static unsigned LZ4_64bits | ( | void | ) | [static] |
References LZ4_compress_default(), and LZ4_compressBound().
Referenced by bshuf_compress_lz4_block().
int LZ4_compress_continue | ( | LZ4_stream_t * | LZ4_stream, | |
const char * | source, | |||
char * | dest, | |||
int | inputSize | |||
) |
References LZ4_compress_fast_continue(), and LZ4_compressBound().
References LZ4_compress_fast().
Referenced by LZ4_compress(), and LZ4_compress_limitedOutput().
References ALLOCATOR, FREEMEM, and LZ4_compress_destSize_extState().
static int LZ4_compress_destSize_extState | ( | void * | state, | |
const char * | src, | |||
char * | dst, | |||
int * | srcSizePtr, | |||
int | targetDstSize | |||
) | [static] |
References byPtr, byU16, byU32, LZ4_64bits(), LZ4_64Klimit, LZ4_compress_destSize_generic(), LZ4_compress_fast_extState(), LZ4_compressBound(), and LZ4_resetStream().
Referenced by LZ4_compress_destSize().
static int LZ4_compress_destSize_generic | ( | void *const | ctx, | |
const char *const | src, | |||
char *const | dst, | |||
int *const | srcSizePtr, | |||
const int | targetDstSize, | |||
const tableType_t | tableType | |||
) | [static] |
References byU16, int, LASTLITERALS, LZ4_64Klimit, LZ4_count(), LZ4_getPosition(), LZ4_getPositionOnHash(), LZ4_hashPosition(), LZ4_MAX_INPUT_SIZE, LZ4_minLength, LZ4_putPosition(), LZ4_putPositionOnHash(), LZ4_read32(), LZ4_wildCopy(), LZ4_writeLE16(), match(), MAX_DISTANCE, MFLIMIT, MINMATCH, ML_BITS, ML_MASK, RUN_MASK, and unlikely.
Referenced by LZ4_compress_destSize_extState().
int LZ4_compress_fast | ( | const char * | source, | |
char * | dest, | |||
int | inputSize, | |||
int | maxOutputSize, | |||
int | acceleration | |||
) |
References ALLOCATOR, FREEMEM, and LZ4_compress_fast_extState().
Referenced by LZ4_compress_default().
int LZ4_compress_fast_continue | ( | LZ4_stream_t * | LZ4_stream, | |
const char * | source, | |||
char * | dest, | |||
int | inputSize, | |||
int | maxOutputSize, | |||
int | acceleration | |||
) |
References ACCELERATION_DEFAULT, byU32, LZ4_stream_t_internal::currentOffset, LZ4_stream_t_internal::dictionary, LZ4_stream_t_internal::dictSize, dictSmall, LZ4_stream_t_internal::initCheck, KB, limitedOutput, LZ4_compress_generic(), LZ4_renormDictT(), noDictIssue, usingExtDict, and withPrefix64k.
Referenced by LZ4_compress_continue(), and LZ4_compress_limitedOutput_continue().
int LZ4_compress_fast_extState | ( | void * | state, | |
const char * | source, | |||
char * | dest, | |||
int | inputSize, | |||
int | maxOutputSize, | |||
int | acceleration | |||
) |
References ACCELERATION_DEFAULT, byPtr, byU16, byU32, limitedOutput, LZ4_64bits(), LZ4_64Klimit, LZ4_compress_generic(), LZ4_compressBound(), LZ4_resetStream(), noDict, noDictIssue, and notLimited.
Referenced by LZ4_compress_destSize_extState(), LZ4_compress_fast(), LZ4_compress_limitedOutput_withState(), and LZ4_compress_withState().
int LZ4_compress_fast_force | ( | const char * | source, | |
char * | dest, | |||
int | inputSize, | |||
int | maxOutputSize, | |||
int | acceleration | |||
) |
References byPtr, byU16, byU32, limitedOutput, LZ4_64bits(), LZ4_64Klimit, LZ4_compress_generic(), LZ4_resetStream(), noDict, and noDictIssue.
int LZ4_compress_forceExtDict | ( | LZ4_stream_t * | LZ4_dict, | |
const char * | source, | |||
char * | dest, | |||
int | inputSize | |||
) |
FORCE_INLINE int LZ4_compress_generic | ( | void *const | ctx, | |
const char *const | source, | |||
char *const | dest, | |||
const int | inputSize, | |||
const int | maxOutputSize, | |||
const limitedOutput_directive | outputLimited, | |||
const tableType_t | tableType, | |||
const dict_directive | dict, | |||
const dictIssue_directive | dictIssue, | |||
const U32 | acceleration | |||
) |
References byU16, LZ4_stream_t_internal::currentOffset, LZ4_stream_t_internal::dictionary, LZ4_stream_t_internal::dictSize, dictSmall, int, LASTLITERALS, LZ4_64Klimit, LZ4_count(), LZ4_getPosition(), LZ4_getPositionOnHash(), LZ4_hashPosition(), LZ4_MAX_INPUT_SIZE, LZ4_minLength, LZ4_putPosition(), LZ4_putPositionOnHash(), LZ4_read32(), LZ4_wildCopy(), LZ4_writeLE16(), match(), MAX_DISTANCE, MFLIMIT, MINMATCH, ML_BITS, ML_MASK, noDict, RUN_MASK, unlikely, usingExtDict, and withPrefix64k.
Referenced by LZ4_compress_fast_continue(), LZ4_compress_fast_extState(), LZ4_compress_fast_force(), and LZ4_compress_forceExtDict().
int LZ4_compress_limitedOutput | ( | const char * | source, | |
char * | dest, | |||
int | inputSize, | |||
int | maxOutputSize | |||
) |
References LZ4_compress_default().
int LZ4_compress_limitedOutput_continue | ( | LZ4_stream_t * | LZ4_stream, | |
const char * | src, | |||
char * | dst, | |||
int | srcSize, | |||
int | maxDstSize | |||
) |
References LZ4_compress_fast_continue().
int LZ4_compress_limitedOutput_withState | ( | void * | state, | |
const char * | src, | |||
char * | dst, | |||
int | srcSize, | |||
int | dstSize | |||
) |
References LZ4_compress_fast_extState().
References LZ4_compress_fast_extState(), and LZ4_compressBound().
static void LZ4_copy4 | ( | void * | dstPtr, | |
const void * | srcPtr | |||
) | [static] |
Referenced by LZ4_decompress_generic().
static void LZ4_copy8 | ( | void * | dstPtr, | |
const void * | srcPtr | |||
) | [static] |
Referenced by LZ4_decompress_generic(), and LZ4_wildCopy().
References likely, LZ4_64bits(), LZ4_NbCommonBytes(), LZ4_read16(), LZ4_read32(), LZ4_read_ARCH(), and STEPSIZE.
Referenced by LZ4_compress_destSize_generic(), and LZ4_compress_generic().
void* LZ4_create | ( | char * | inputBuffer | ) |
References ALLOCATOR, LZ4_init(), and LZ4_STREAMSIZE_U64.
LZ4_stream_t* LZ4_createStream | ( | void | ) |
References ALLOCATOR, LZ4_resetStream(), LZ4_STATIC_ASSERT, LZ4_STREAMSIZE, and LZ4_STREAMSIZE_U64.
LZ4_streamDecode_t* LZ4_createStreamDecode | ( | void | ) |
References ALLOCATOR.
References endOnOutputSize, full, KB, LZ4_decompress_generic(), and withPrefix64k.
Referenced by bshuf_decompress_lz4_block(), and LZ4_uncompress().
int LZ4_decompress_fast_continue | ( | LZ4_streamDecode_t * | LZ4_streamDecode, | |
const char * | source, | |||
char * | dest, | |||
int | originalSize | |||
) |
int LZ4_decompress_fast_usingDict | ( | const char * | source, | |
char * | dest, | |||
int | originalSize, | |||
const char * | dictStart, | |||
int | dictSize | |||
) |
References LZ4_decompress_usingDict_generic().
References endOnOutputSize, full, KB, LZ4_decompress_generic(), and withPrefix64k.
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 | |||
) |
References COPYLENGTH, endOnInputSize, KB, LASTLITERALS, likely, LZ4_copy4(), LZ4_copy8(), LZ4_readLE16(), LZ4_wildCopy(), match(), MFLIMIT, MINMATCH, ML_BITS, ML_MASK, RUN_MASK, unlikely, and usingExtDict.
Referenced by LZ4_decompress_fast(), LZ4_decompress_fast_continue(), LZ4_decompress_fast_withPrefix64k(), LZ4_decompress_safe(), LZ4_decompress_safe_continue(), LZ4_decompress_safe_forceExtDict(), LZ4_decompress_safe_partial(), LZ4_decompress_safe_withPrefix64k(), and LZ4_decompress_usingDict_generic().
int LZ4_decompress_safe | ( | const char * | source, | |
char * | dest, | |||
int | compressedSize, | |||
int | maxDecompressedSize | |||
) |
References endOnInputSize, full, LZ4_decompress_generic(), and noDict.
Referenced by bshuf_decompress_lz4_block(), and LZ4_uncompress_unknownOutputSize().
int LZ4_decompress_safe_continue | ( | LZ4_streamDecode_t * | LZ4_streamDecode, | |
const char * | source, | |||
char * | dest, | |||
int | compressedSize, | |||
int | maxOutputSize | |||
) |
int LZ4_decompress_safe_forceExtDict | ( | const char * | source, | |
char * | dest, | |||
int | compressedSize, | |||
int | maxOutputSize, | |||
const char * | dictStart, | |||
int | dictSize | |||
) |
References endOnInputSize, full, LZ4_decompress_generic(), and usingExtDict.
int LZ4_decompress_safe_partial | ( | const char * | source, | |
char * | dest, | |||
int | compressedSize, | |||
int | targetOutputSize, | |||
int | maxDecompressedSize | |||
) |
References endOnInputSize, LZ4_decompress_generic(), noDict, and partial.
int LZ4_decompress_safe_usingDict | ( | const char * | source, | |
char * | dest, | |||
int | compressedSize, | |||
int | maxOutputSize, | |||
const char * | dictStart, | |||
int | dictSize | |||
) |
References LZ4_decompress_usingDict_generic().
int LZ4_decompress_safe_withPrefix64k | ( | const char * | source, | |
char * | dest, | |||
int | compressedSize, | |||
int | maxOutputSize | |||
) |
References endOnInputSize, full, KB, LZ4_decompress_generic(), and withPrefix64k.
FORCE_INLINE int LZ4_decompress_usingDict_generic | ( | const char * | source, | |
char * | dest, | |||
int | compressedSize, | |||
int | maxOutputSize, | |||
int | safe, | |||
const char * | dictStart, | |||
int | dictSize | |||
) |
References full, KB, LZ4_decompress_generic(), noDict, usingExtDict, and withPrefix64k.
Referenced by LZ4_decompress_fast_usingDict(), and LZ4_decompress_safe_usingDict().
int LZ4_freeStream | ( | LZ4_stream_t * | LZ4_stream | ) |
References FREEMEM.
int LZ4_freeStreamDecode | ( | LZ4_streamDecode_t * | LZ4_stream | ) |
References FREEMEM.
static const BYTE* LZ4_getPosition | ( | const BYTE * | p, | |
void * | tableBase, | |||
tableType_t | tableType, | |||
const BYTE * | srcBase | |||
) | [static] |
References LZ4_getPositionOnHash(), and LZ4_hashPosition().
Referenced by LZ4_compress_destSize_generic(), and LZ4_compress_generic().
static const BYTE* LZ4_getPositionOnHash | ( | U32 | h, | |
void * | tableBase, | |||
tableType_t | tableType, | |||
const BYTE * | srcBase | |||
) | [static] |
Referenced by LZ4_compress_destSize_generic(), LZ4_compress_generic(), and LZ4_getPosition().
static U32 LZ4_hashPosition | ( | const void * | p, | |
tableType_t | tableType | |||
) | [static] |
References LZ4_hashSequenceT(), and LZ4_read_ARCH().
Referenced by LZ4_compress_destSize_generic(), LZ4_compress_generic(), LZ4_getPosition(), and LZ4_putPosition().
static U32 LZ4_hashSequence | ( | U32 | sequence, | |
tableType_t const | tableType | |||
) | [static] |
References byU16, LZ4_HASHLOG, and MINMATCH.
Referenced by LZ4_hashSequenceT().
static U32 LZ4_hashSequence64 | ( | size_t | sequence, | |
tableType_t const | tableType | |||
) | [static] |
References byU16, and LZ4_HASHLOG.
Referenced by LZ4_hashSequenceT().
static U32 LZ4_hashSequenceT | ( | size_t | sequence, | |
tableType_t const | tableType | |||
) | [static] |
References LZ4_64bits(), LZ4_hashSequence(), and LZ4_hashSequence64().
Referenced by LZ4_hashPosition().
static void LZ4_init | ( | LZ4_stream_t_internal * | lz4ds, | |
BYTE * | base | |||
) | [static] |
References LZ4_stream_t_internal::bufferStart, LZ4_STREAMSIZE, and MEM_INIT.
Referenced by LZ4_create(), and LZ4_resetStreamState().
static unsigned LZ4_isLittleEndian | ( | void | ) | [static] |
Referenced by LZ4_NbCommonBytes(), LZ4_readLE16(), and LZ4_writeLE16().
int LZ4_loadDict | ( | LZ4_stream_t * | LZ4_dict, | |
const char * | dictionary, | |||
int | dictSize | |||
) |
static unsigned LZ4_NbCommonBytes | ( | register size_t | val | ) | [static] |
References LZ4_64bits(), and LZ4_isLittleEndian().
Referenced by LZ4_count().
static void LZ4_putPosition | ( | const BYTE * | p, | |
void * | tableBase, | |||
tableType_t | tableType, | |||
const BYTE * | srcBase | |||
) | [static] |
References LZ4_hashPosition(), and LZ4_putPositionOnHash().
Referenced by LZ4_compress_destSize_generic(), LZ4_compress_generic(), and LZ4_loadDict().
static void LZ4_putPositionOnHash | ( | const BYTE * | p, | |
U32 | h, | |||
void * | tableBase, | |||
tableType_t const | tableType, | |||
const BYTE * | srcBase | |||
) | [static] |
References byPtr, byU16, and byU32.
Referenced by LZ4_compress_destSize_generic(), LZ4_compress_generic(), and LZ4_putPosition().
static U16 LZ4_read16 | ( | const void * | memPtr | ) | [static] |
Referenced by LZ4_count(), and LZ4_readLE16().
static U32 LZ4_read32 | ( | const void * | memPtr | ) | [static] |
Referenced by LZ4_compress_destSize_generic(), LZ4_compress_generic(), LZ4_count(), and LZ4_read_ARCH().
static U64 LZ4_read64 | ( | const void * | memPtr | ) | [static] |
Referenced by LZ4_read_ARCH().
static size_t LZ4_read_ARCH | ( | const void * | p | ) | [static] |
References LZ4_64bits(), LZ4_read32(), and LZ4_read64().
Referenced by LZ4_count(), and LZ4_hashPosition().
static U16 LZ4_readLE16 | ( | const void * | memPtr | ) | [static] |
References LZ4_isLittleEndian(), and LZ4_read16().
Referenced by LZ4_decompress_generic().
static void LZ4_renormDictT | ( | LZ4_stream_t_internal * | LZ4_dict, | |
const BYTE * | src | |||
) | [static] |
void LZ4_resetStream | ( | LZ4_stream_t * | LZ4_stream | ) |
References MEM_INIT.
Referenced by LZ4_compress_destSize_extState(), LZ4_compress_fast_extState(), LZ4_compress_fast_force(), LZ4_createStream(), and LZ4_loadDict().
int LZ4_resetStreamState | ( | void * | state, | |
char * | inputBuffer | |||
) |
References LZ4_init().
int LZ4_saveDict | ( | LZ4_stream_t * | LZ4_dict, | |
char * | safeBuffer, | |||
int | dictSize | |||
) |
References LZ4_stream_t_internal::dictionary, LZ4_stream_t_internal::dictSize, and KB.
Referenced by LZ4_slideInputBuffer().
int LZ4_setStreamDecode | ( | LZ4_streamDecode_t * | LZ4_streamDecode, | |
const char * | dictionary, | |||
int | dictSize | |||
) |
int LZ4_sizeofState | ( | void | ) |
References LZ4_STREAMSIZE.
int LZ4_sizeofStreamState | ( | ) |
References LZ4_STREAMSIZE.
char* LZ4_slideInputBuffer | ( | void * | LZ4_Data | ) |
References LZ4_stream_t_internal::bufferStart, KB, and LZ4_saveDict().
References LZ4_decompress_fast().
int LZ4_uncompress_unknownOutputSize | ( | const char * | source, | |
char * | dest, | |||
int | isize, | |||
int | maxOutputSize | |||
) |
References LZ4_decompress_safe().
int LZ4_versionNumber | ( | void | ) |
References LZ4_VERSION_NUMBER.
static void LZ4_wildCopy | ( | void * | dstPtr, | |
const void * | srcPtr, | |||
void * | dstEnd | |||
) | [static] |
References LZ4_copy8().
Referenced by LZ4_compress_destSize_generic(), LZ4_compress_generic(), and LZ4_decompress_generic().
static void LZ4_writeLE16 | ( | void * | memPtr, | |
U16 | value | |||
) | [static] |
References LZ4_isLittleEndian().
Referenced by LZ4_compress_destSize_generic(), and LZ4_compress_generic().
const int LZ4_64Klimit = ((64 KB) + (MFLIMIT-1)) [static] |
const int LZ4_minLength = (MFLIMIT+1) [static] |
Referenced by LZ4_compress_destSize_generic(), and LZ4_compress_generic().
const U32 LZ4_skipTrigger = 6 [static] |
const U64 prime5bytes = 889523592379ULL [static] |