ROOTANA
Data Structures | Macros | Typedefs | Enumerations | Functions | Variables
lz4.cxx File Reference
#include "mlz4.h"
#include <stdlib.h>
#include <string.h>
Include dependency graph for lz4.cxx:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  MLZ4_stream_t_internal
 
struct  MLZ4_streamDecode_t_internal
 

Macros

#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 MLZ4_STATIC_ASSERT(c)   { enum { MLZ4_static_assert = 1/(int)(!!(c)) }; } /* use only *after* variable declarations */
 
#define MLZ4_HASHLOG   (MLZ4_MEMORY_USAGE-2)
 
#define HASHTABLESIZE   (1 << MLZ4_MEMORY_USAGE)
 
#define HASH_SIZE_U32   (1 << MLZ4_HASHLOG) /* required as macro for static allocation */
 
#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 , 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

static unsigned MLZ4_64bits (void)
 
static unsigned MLZ4_isLittleEndian (void)
 
static U16 MLZ4_read16 (const void *memPtr)
 
static U16 MLZ4_readLE16 (const void *memPtr)
 
static void MLZ4_writeLE16 (void *memPtr, U16 value)
 
static U32 MLZ4_read32 (const void *memPtr)
 
static U64 MLZ4_read64 (const void *memPtr)
 
static size_t MLZ4_read_ARCH (const void *p)
 
static void MLZ4_copy4 (void *dstPtr, const void *srcPtr)
 
static void MLZ4_copy8 (void *dstPtr, const void *srcPtr)
 
static void MLZ4_wildCopy (void *dstPtr, const void *srcPtr, void *dstEnd)
 
static unsigned MLZ4_NbCommonBytes (size_t val)
 
static unsigned MLZ4_count (const BYTE *pIn, const BYTE *pMatch, const BYTE *pInLimit)
 
int MLZ4_versionNumber (void)
 
int MLZ4_compressBound (int isize)
 
int MLZ4_sizeofState ()
 
static U32 MLZ4_hashSequence (U32 sequence, tableType_t const tableType)
 
static U32 MLZ4_hashSequence64 (size_t sequence, tableType_t const tableType)
 
static U32 MLZ4_hashSequenceT (size_t sequence, tableType_t const tableType)
 
static U32 MLZ4_hashPosition (const void *p, tableType_t tableType)
 
static void MLZ4_putPositionOnHash (const BYTE *p, U32 h, void *tableBase, tableType_t const tableType, const BYTE *srcBase)
 
static void MLZ4_putPosition (const BYTE *p, void *tableBase, tableType_t tableType, const BYTE *srcBase)
 
static const BYTEMLZ4_getPositionOnHash (U32 h, void *tableBase, tableType_t tableType, const BYTE *srcBase)
 
static const BYTEMLZ4_getPosition (const BYTE *p, void *tableBase, tableType_t tableType, const BYTE *srcBase)
 
FORCE_INLINE int MLZ4_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 MLZ4_compress_fast_extState (void *state, const char *source, char *dest, int inputSize, int maxOutputSize, int acceleration)
 
int MLZ4_compress_fast (const char *source, char *dest, int inputSize, int maxOutputSize, int acceleration)
 
int MLZ4_compress_default (const char *source, char *dest, int inputSize, int maxOutputSize)
 
int MLZ4_compress_fast_force (const char *source, char *dest, int inputSize, int maxOutputSize, int acceleration)
 
static int MLZ4_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 MLZ4_compress_destSize_extState (void *state, const char *src, char *dst, int *srcSizePtr, int targetDstSize)
 
int MLZ4_compress_destSize (const char *src, char *dst, int *srcSizePtr, int targetDstSize)
 
MLZ4_stream_tMLZ4_createStream (void)
 
void MLZ4_resetStream (MLZ4_stream_t *MLZ4_stream)
 
int MLZ4_freeStream (MLZ4_stream_t *MLZ4_stream)
 
int MLZ4_loadDict (MLZ4_stream_t *MLZ4_dict, const char *dictionary, int dictSize)
 
static void MLZ4_renormDictT (MLZ4_stream_t_internal *MLZ4_dict, const BYTE *src)
 
int MLZ4_compress_fast_continue (MLZ4_stream_t *MLZ4_stream, const char *source, char *dest, int inputSize, int maxOutputSize, int acceleration)
 
int MLZ4_compress_forceExtDict (MLZ4_stream_t *MLZ4_dict, const char *source, char *dest, int inputSize)
 
int MLZ4_saveDict (MLZ4_stream_t *MLZ4_dict, char *safeBuffer, int dictSize)
 
FORCE_INLINE int MLZ4_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 MLZ4_decompress_safe (const char *source, char *dest, int compressedSize, int maxDecompressedSize)
 
int MLZ4_decompress_safe_partial (const char *source, char *dest, int compressedSize, int targetOutputSize, int maxDecompressedSize)
 
int MLZ4_decompress_fast (const char *source, char *dest, int originalSize)
 
MLZ4_streamDecode_tMLZ4_createStreamDecode (void)
 
int MLZ4_freeStreamDecode (MLZ4_streamDecode_t *MLZ4_stream)
 
int MLZ4_setStreamDecode (MLZ4_streamDecode_t *MLZ4_streamDecode, const char *dictionary, int dictSize)
 
int MLZ4_decompress_safe_continue (MLZ4_streamDecode_t *MLZ4_streamDecode, const char *source, char *dest, int compressedSize, int maxOutputSize)
 
int MLZ4_decompress_fast_continue (MLZ4_streamDecode_t *MLZ4_streamDecode, const char *source, char *dest, int originalSize)
 
FORCE_INLINE int MLZ4_decompress_usingDict_generic (const char *source, char *dest, int compressedSize, int maxOutputSize, int safe, const char *dictStart, int dictSize)
 
int MLZ4_decompress_safe_usingDict (const char *source, char *dest, int compressedSize, int maxOutputSize, const char *dictStart, int dictSize)
 
int MLZ4_decompress_fast_usingDict (const char *source, char *dest, int originalSize, const char *dictStart, int dictSize)
 
int MLZ4_decompress_safe_forceExtDict (const char *source, char *dest, int compressedSize, int maxOutputSize, const char *dictStart, int dictSize)
 
int MLZ4_compress_limitedOutput (const char *source, char *dest, int inputSize, int maxOutputSize)
 
int MLZ4_compress (const char *source, char *dest, int inputSize)
 
int MLZ4_compress_limitedOutput_withState (void *state, const char *src, char *dst, int srcSize, int dstSize)
 
int MLZ4_compress_withState (void *state, const char *src, char *dst, int srcSize)
 
int MLZ4_compress_limitedOutput_continue (MLZ4_stream_t *MLZ4_stream, const char *src, char *dst, int srcSize, int maxDstSize)
 
int MLZ4_compress_continue (MLZ4_stream_t *MLZ4_stream, const char *source, char *dest, int inputSize)
 
int MLZ4_uncompress (const char *source, char *dest, int outputSize)
 
int MLZ4_uncompress_unknownOutputSize (const char *source, char *dest, int isize, int maxOutputSize)
 
int MLZ4_sizeofStreamState ()
 
static void MLZ4_init (MLZ4_stream_t_internal *lz4ds, BYTE *base)
 
int MLZ4_resetStreamState (void *state, char *inputBuffer)
 
void * MLZ4_create (char *inputBuffer)
 
char * MLZ4_slideInputBuffer (void *MLZ4_Data)
 
int MLZ4_decompress_safe_withPrefix64k (const char *source, char *dest, int compressedSize, int maxOutputSize)
 
int MLZ4_decompress_fast_withPrefix64k (const char *source, char *dest, int originalSize)
 

Variables

static const int MLZ4_minLength = (MFLIMIT+1)
 
static const int MLZ4_64Klimit = ((64 KB) + (MFLIMIT-1))
 
static const U32 MLZ4_skipTrigger = 6
 
static const U64 prime5bytes = 889523592379ULL
 

Macro Definition Documentation

◆ ACCELERATION_DEFAULT

#define ACCELERATION_DEFAULT   1

Definition at line 50 of file lz4.cxx.

◆ ALLOCATOR

#define ALLOCATOR (   n,
 
)    calloc(n,s)

Definition at line 106 of file lz4.cxx.

◆ COPYLENGTH

#define COPYLENGTH   8

Definition at line 221 of file lz4.cxx.

◆ expect

#define expect (   expr,
  value 
)    (expr)

Definition at line 95 of file lz4.cxx.

◆ FORCE_INLINE

#define FORCE_INLINE   static

Definition at line 87 of file lz4.cxx.

◆ FREEMEM

#define FREEMEM   free

Definition at line 107 of file lz4.cxx.

◆ GB

#define GB   *(1U<<30)

Definition at line 228 of file lz4.cxx.

◆ HASH_SIZE_U32

#define HASH_SIZE_U32   (1 << MLZ4_HASHLOG) /* required as macro for static allocation */

Definition at line 340 of file lz4.cxx.

◆ HASH_UNIT

#define HASH_UNIT   sizeof(size_t)

Definition at line 955 of file lz4.cxx.

◆ HASHTABLESIZE

#define HASHTABLESIZE   (1 << MLZ4_MEMORY_USAGE)

Definition at line 339 of file lz4.cxx.

◆ HEAPMODE

#define HEAPMODE   0

Definition at line 44 of file lz4.cxx.

◆ KB

#define KB   *(1 <<10)

Definition at line 226 of file lz4.cxx.

◆ LASTLITERALS

#define LASTLITERALS   5

Definition at line 222 of file lz4.cxx.

◆ likely

#define likely (   expr)    expect((expr) != 0, 1)

Definition at line 98 of file lz4.cxx.

◆ MAX_DISTANCE

#define MAX_DISTANCE   ((1 << MAXD_LOG) - 1)

Definition at line 231 of file lz4.cxx.

◆ MAXD_LOG

#define MAXD_LOG   16

Definition at line 230 of file lz4.cxx.

◆ MB

#define MB   *(1 <<20)

Definition at line 227 of file lz4.cxx.

◆ MEM_INIT

#define MEM_INIT   memset

Definition at line 109 of file lz4.cxx.

◆ MFLIMIT

#define MFLIMIT   (COPYLENGTH+MINMATCH)

Definition at line 223 of file lz4.cxx.

◆ MINMATCH

#define MINMATCH   4

Definition at line 219 of file lz4.cxx.

◆ ML_BITS

#define ML_BITS   4

Definition at line 233 of file lz4.cxx.

◆ ML_MASK

#define ML_MASK   ((1U<<ML_BITS)-1)

Definition at line 234 of file lz4.cxx.

◆ MLZ4_HASHLOG

#define MLZ4_HASHLOG   (MLZ4_MEMORY_USAGE-2)

Definition at line 338 of file lz4.cxx.

◆ MLZ4_STATIC_ASSERT

#define MLZ4_STATIC_ASSERT (   c)    { enum { MLZ4_static_assert = 1/(int)(!!(c)) }; } /* use only *after* variable declarations */

Definition at line 242 of file lz4.cxx.

◆ RUN_BITS

#define RUN_BITS   (8-ML_BITS)

Definition at line 235 of file lz4.cxx.

◆ RUN_MASK

#define RUN_MASK   ((1U<<RUN_BITS)-1)

Definition at line 236 of file lz4.cxx.

◆ STEPSIZE

#define STEPSIZE   sizeof(size_t)

Definition at line 134 of file lz4.cxx.

◆ unlikely

#define unlikely (   expr)    expect((expr) != 0, 0)

Definition at line 99 of file lz4.cxx.

Typedef Documentation

◆ BYTE

typedef unsigned char BYTE

Definition at line 123 of file lz4.cxx.

◆ S32

typedef signed int S32

Definition at line 126 of file lz4.cxx.

◆ U16

typedef unsigned short U16

Definition at line 124 of file lz4.cxx.

◆ U32

typedef unsigned int U32

Definition at line 125 of file lz4.cxx.

◆ U64

typedef unsigned long long U64

Definition at line 127 of file lz4.cxx.

Enumeration Type Documentation

◆ dict_directive

Enumerator
noDict 
withPrefix64k 
usingExtDict 

Definition at line 361 of file lz4.cxx.

◆ dictIssue_directive

Enumerator
noDictIssue 
dictSmall 

Definition at line 362 of file lz4.cxx.

◆ earlyEnd_directive

Enumerator
full 
partial 

Definition at line 365 of file lz4.cxx.

◆ endCondition_directive

Enumerator
endOnOutputSize 
endOnInputSize 

Definition at line 364 of file lz4.cxx.

◆ limitedOutput_directive

Enumerator
notLimited 
limitedOutput 
noLimit 
limitedOutput 

Definition at line 358 of file lz4.cxx.

◆ tableType_t

Enumerator
byPtr 
byU32 
byU16 

Definition at line 359 of file lz4.cxx.

Function Documentation

◆ MLZ4_64bits()

static unsigned MLZ4_64bits ( void  )
static

Definition at line 136 of file lz4.cxx.

Here is the caller graph for this function:

◆ MLZ4_compress()

int MLZ4_compress ( const char *  source,
char *  dest,
int  inputSize 
)

Definition at line 1456 of file lz4.cxx.

Here is the call graph for this function:

◆ MLZ4_compress_continue()

int MLZ4_compress_continue ( MLZ4_stream_t MLZ4_stream,
const char *  source,
char *  dest,
int  inputSize 
)

Definition at line 1460 of file lz4.cxx.

Here is the call graph for this function:

◆ MLZ4_compress_default()

int MLZ4_compress_default ( const char *  source,
char *  dest,
int  inputSize,
int  maxOutputSize 
)

Definition at line 697 of file lz4.cxx.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ MLZ4_compress_destSize()

int MLZ4_compress_destSize ( const char *  src,
char *  dst,
int *  srcSizePtr,
int  targetDstSize 
)

Definition at line 912 of file lz4.cxx.

Here is the call graph for this function:

◆ MLZ4_compress_destSize_extState()

static int MLZ4_compress_destSize_extState ( void *  state,
const char *  src,
char *  dst,
int *  srcSizePtr,
int  targetDstSize 
)
static

Definition at line 894 of file lz4.cxx.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ MLZ4_compress_destSize_generic()

static int MLZ4_compress_destSize_generic ( void *const  ctx,
const char *const  src,
char *const  dst,
int *const  srcSizePtr,
const int  targetDstSize,
const tableType_t  tableType 
)
static

Definition at line 722 of file lz4.cxx.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ MLZ4_compress_fast()

int MLZ4_compress_fast ( const char *  source,
char *  dest,
int  inputSize,
int  maxOutputSize,
int  acceleration 
)

Definition at line 679 of file lz4.cxx.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ MLZ4_compress_fast_continue()

int MLZ4_compress_fast_continue ( MLZ4_stream_t MLZ4_stream,
const char *  source,
char *  dest,
int  inputSize,
int  maxOutputSize,
int  acceleration 
)

Definition at line 1011 of file lz4.cxx.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ MLZ4_compress_fast_extState()

int MLZ4_compress_fast_extState ( void *  state,
const char *  source,
char *  dest,
int  inputSize,
int  maxOutputSize,
int  acceleration 
)

Definition at line 657 of file lz4.cxx.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ MLZ4_compress_fast_force()

int MLZ4_compress_fast_force ( const char *  source,
char *  dest,
int  inputSize,
int  maxOutputSize,
int  acceleration 
)

Definition at line 705 of file lz4.cxx.

Here is the call graph for this function:

◆ MLZ4_compress_forceExtDict()

int MLZ4_compress_forceExtDict ( MLZ4_stream_t MLZ4_dict,
const char *  source,
char *  dest,
int  inputSize 
)

Definition at line 1063 of file lz4.cxx.

Here is the call graph for this function:

◆ MLZ4_compress_generic()

FORCE_INLINE int MLZ4_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 
)

Definition at line 435 of file lz4.cxx.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ MLZ4_compress_limitedOutput()

int MLZ4_compress_limitedOutput ( const char *  source,
char *  dest,
int  inputSize,
int  maxOutputSize 
)

Definition at line 1455 of file lz4.cxx.

Here is the call graph for this function:

◆ MLZ4_compress_limitedOutput_continue()

int MLZ4_compress_limitedOutput_continue ( MLZ4_stream_t MLZ4_stream,
const char *  src,
char *  dst,
int  srcSize,
int  maxDstSize 
)

Definition at line 1459 of file lz4.cxx.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ MLZ4_compress_limitedOutput_withState()

int MLZ4_compress_limitedOutput_withState ( void *  state,
const char *  src,
char *  dst,
int  srcSize,
int  dstSize 
)

Definition at line 1457 of file lz4.cxx.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ MLZ4_compress_withState()

int MLZ4_compress_withState ( void *  state,
const char *  src,
char *  dst,
int  srcSize 
)

Definition at line 1458 of file lz4.cxx.

Here is the call graph for this function:

◆ MLZ4_compressBound()

int MLZ4_compressBound ( int  isize)

Definition at line 372 of file lz4.cxx.

Here is the caller graph for this function:

◆ MLZ4_copy4()

static void MLZ4_copy4 ( void *  dstPtr,
const void *  srcPtr 
)
static

Definition at line 202 of file lz4.cxx.

Here is the caller graph for this function:

◆ MLZ4_copy8()

static void MLZ4_copy8 ( void *  dstPtr,
const void *  srcPtr 
)
static

Definition at line 204 of file lz4.cxx.

Here is the caller graph for this function:

◆ MLZ4_count()

static unsigned MLZ4_count ( const BYTE pIn,
const BYTE pMatch,
const BYTE pInLimit 
)
static

Definition at line 315 of file lz4.cxx.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ MLZ4_create()

void* MLZ4_create ( char *  inputBuffer)

Definition at line 1489 of file lz4.cxx.

Here is the call graph for this function:

◆ MLZ4_createStream()

MLZ4_stream_t* MLZ4_createStream ( void  )

Definition at line 935 of file lz4.cxx.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ MLZ4_createStreamDecode()

MLZ4_streamDecode_t* MLZ4_createStreamDecode ( void  )

Definition at line 1319 of file lz4.cxx.

◆ MLZ4_decompress_fast()

int MLZ4_decompress_fast ( const char *  source,
char *  dest,
int  originalSize 
)

Definition at line 1298 of file lz4.cxx.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ MLZ4_decompress_fast_continue()

int MLZ4_decompress_fast_continue ( MLZ4_streamDecode_t MLZ4_streamDecode,
const char *  source,
char *  dest,
int  originalSize 
)

Definition at line 1384 of file lz4.cxx.

Here is the call graph for this function:

◆ MLZ4_decompress_fast_usingDict()

int MLZ4_decompress_fast_usingDict ( const char *  source,
char *  dest,
int  originalSize,
const char *  dictStart,
int  dictSize 
)

Definition at line 1439 of file lz4.cxx.

Here is the call graph for this function:

◆ MLZ4_decompress_fast_withPrefix64k()

int MLZ4_decompress_fast_withPrefix64k ( const char *  source,
char *  dest,
int  originalSize 
)

Definition at line 1510 of file lz4.cxx.

Here is the call graph for this function:

◆ MLZ4_decompress_generic()

FORCE_INLINE int MLZ4_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 
)

Definition at line 1110 of file lz4.cxx.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ MLZ4_decompress_safe()

int MLZ4_decompress_safe ( const char *  source,
char *  dest,
int  compressedSize,
int  maxDecompressedSize 
)

Definition at line 1288 of file lz4.cxx.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ MLZ4_decompress_safe_continue()

int MLZ4_decompress_safe_continue ( MLZ4_streamDecode_t MLZ4_streamDecode,
const char *  source,
char *  dest,
int  compressedSize,
int  maxOutputSize 
)

Definition at line 1355 of file lz4.cxx.

Here is the call graph for this function:

◆ MLZ4_decompress_safe_forceExtDict()

int MLZ4_decompress_safe_forceExtDict ( const char *  source,
char *  dest,
int  compressedSize,
int  maxOutputSize,
const char *  dictStart,
int  dictSize 
)

Definition at line 1445 of file lz4.cxx.

Here is the call graph for this function:

◆ MLZ4_decompress_safe_partial()

int MLZ4_decompress_safe_partial ( const char *  source,
char *  dest,
int  compressedSize,
int  targetOutputSize,
int  maxDecompressedSize 
)

Definition at line 1293 of file lz4.cxx.

Here is the call graph for this function:

◆ MLZ4_decompress_safe_usingDict()

int MLZ4_decompress_safe_usingDict ( const char *  source,
char *  dest,
int  compressedSize,
int  maxOutputSize,
const char *  dictStart,
int  dictSize 
)

Definition at line 1434 of file lz4.cxx.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ MLZ4_decompress_safe_withPrefix64k()

int MLZ4_decompress_safe_withPrefix64k ( const char *  source,
char *  dest,
int  compressedSize,
int  maxOutputSize 
)

Definition at line 1505 of file lz4.cxx.

Here is the call graph for this function:

◆ MLZ4_decompress_usingDict_generic()

FORCE_INLINE int MLZ4_decompress_usingDict_generic ( const char *  source,
char *  dest,
int  compressedSize,
int  maxOutputSize,
int  safe,
const char *  dictStart,
int  dictSize 
)

Definition at line 1421 of file lz4.cxx.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ MLZ4_freeStream()

int MLZ4_freeStream ( MLZ4_stream_t MLZ4_stream)

Definition at line 948 of file lz4.cxx.

◆ MLZ4_freeStreamDecode()

int MLZ4_freeStreamDecode ( MLZ4_streamDecode_t MLZ4_stream)

Definition at line 1325 of file lz4.cxx.

◆ MLZ4_getPosition()

static const BYTE* MLZ4_getPosition ( const BYTE p,
void *  tableBase,
tableType_t  tableType,
const BYTE srcBase 
)
static

Definition at line 429 of file lz4.cxx.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ MLZ4_getPositionOnHash()

static const BYTE* MLZ4_getPositionOnHash ( U32  h,
void *  tableBase,
tableType_t  tableType,
const BYTE srcBase 
)
static

Definition at line 422 of file lz4.cxx.

Here is the caller graph for this function:

◆ MLZ4_hashPosition()

static U32 MLZ4_hashPosition ( const void *  p,
tableType_t  tableType 
)
static

Definition at line 404 of file lz4.cxx.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ MLZ4_hashSequence()

static U32 MLZ4_hashSequence ( U32  sequence,
tableType_t const  tableType 
)
static

Definition at line 381 of file lz4.cxx.

Here is the caller graph for this function:

◆ MLZ4_hashSequence64()

static U32 MLZ4_hashSequence64 ( size_t  sequence,
tableType_t const  tableType 
)
static

Definition at line 390 of file lz4.cxx.

Here is the caller graph for this function:

◆ MLZ4_hashSequenceT()

static U32 MLZ4_hashSequenceT ( size_t  sequence,
tableType_t const  tableType 
)
static

Definition at line 397 of file lz4.cxx.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ MLZ4_init()

static void MLZ4_init ( MLZ4_stream_t_internal lz4ds,
BYTE base 
)
static

Definition at line 1476 of file lz4.cxx.

Here is the caller graph for this function:

◆ MLZ4_isLittleEndian()

static unsigned MLZ4_isLittleEndian ( void  )
static

Definition at line 138 of file lz4.cxx.

Here is the caller graph for this function:

◆ MLZ4_loadDict()

int MLZ4_loadDict ( MLZ4_stream_t MLZ4_dict,
const char *  dictionary,
int  dictSize 
)

Definition at line 956 of file lz4.cxx.

Here is the call graph for this function:

◆ MLZ4_NbCommonBytes()

static unsigned MLZ4_NbCommonBytes ( size_t  val)
static

Definition at line 248 of file lz4.cxx.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ MLZ4_putPosition()

static void MLZ4_putPosition ( const BYTE p,
void *  tableBase,
tableType_t  tableType,
const BYTE srcBase 
)
static

Definition at line 416 of file lz4.cxx.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ MLZ4_putPositionOnHash()

static void MLZ4_putPositionOnHash ( const BYTE p,
U32  h,
void *  tableBase,
tableType_t const  tableType,
const BYTE srcBase 
)
static

Definition at line 406 of file lz4.cxx.

Here is the caller graph for this function:

◆ MLZ4_read16()

static U16 MLZ4_read16 ( const void *  memPtr)
static

Definition at line 145 of file lz4.cxx.

Here is the caller graph for this function:

◆ MLZ4_read32()

static U32 MLZ4_read32 ( const void *  memPtr)
static

Definition at line 179 of file lz4.cxx.

Here is the caller graph for this function:

◆ MLZ4_read64()

static U64 MLZ4_read64 ( const void *  memPtr)
static

Definition at line 186 of file lz4.cxx.

Here is the caller graph for this function:

◆ MLZ4_read_ARCH()

static size_t MLZ4_read_ARCH ( const void *  p)
static

Definition at line 193 of file lz4.cxx.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ MLZ4_readLE16()

static U16 MLZ4_readLE16 ( const void *  memPtr)
static

Definition at line 152 of file lz4.cxx.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ MLZ4_renormDictT()

static void MLZ4_renormDictT ( MLZ4_stream_t_internal MLZ4_dict,
const BYTE src 
)
static

Definition at line 990 of file lz4.cxx.

Here is the caller graph for this function:

◆ MLZ4_resetStream()

void MLZ4_resetStream ( MLZ4_stream_t MLZ4_stream)

Definition at line 943 of file lz4.cxx.

Here is the caller graph for this function:

◆ MLZ4_resetStreamState()

int MLZ4_resetStreamState ( void *  state,
char *  inputBuffer 
)

Definition at line 1482 of file lz4.cxx.

Here is the call graph for this function:

◆ MLZ4_saveDict()

int MLZ4_saveDict ( MLZ4_stream_t MLZ4_dict,
char *  safeBuffer,
int  dictSize 
)

Definition at line 1083 of file lz4.cxx.

Here is the caller graph for this function:

◆ MLZ4_setStreamDecode()

int MLZ4_setStreamDecode ( MLZ4_streamDecode_t MLZ4_streamDecode,
const char *  dictionary,
int  dictSize 
)

Definition at line 1338 of file lz4.cxx.

◆ MLZ4_sizeofState()

int MLZ4_sizeofState ( void  )

Definition at line 373 of file lz4.cxx.

◆ MLZ4_sizeofStreamState()

int MLZ4_sizeofStreamState ( )

Definition at line 1474 of file lz4.cxx.

◆ MLZ4_slideInputBuffer()

char* MLZ4_slideInputBuffer ( void *  MLZ4_Data)

Definition at line 1496 of file lz4.cxx.

Here is the call graph for this function:

◆ MLZ4_uncompress()

int MLZ4_uncompress ( const char *  source,
char *  dest,
int  outputSize 
)

Definition at line 1468 of file lz4.cxx.

Here is the call graph for this function:

◆ MLZ4_uncompress_unknownOutputSize()

int MLZ4_uncompress_unknownOutputSize ( const char *  source,
char *  dest,
int  isize,
int  maxOutputSize 
)

Definition at line 1469 of file lz4.cxx.

Here is the call graph for this function:

◆ MLZ4_versionNumber()

int MLZ4_versionNumber ( void  )

Definition at line 371 of file lz4.cxx.

◆ MLZ4_wildCopy()

static void MLZ4_wildCopy ( void *  dstPtr,
const void *  srcPtr,
void *  dstEnd 
)
static

Definition at line 207 of file lz4.cxx.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ MLZ4_writeLE16()

static void MLZ4_writeLE16 ( void *  memPtr,
U16  value 
)
static

Definition at line 165 of file lz4.cxx.

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ MLZ4_64Klimit

const int MLZ4_64Klimit = ((64 KB) + (MFLIMIT-1))
static

Definition at line 342 of file lz4.cxx.

◆ MLZ4_minLength

const int MLZ4_minLength = (MFLIMIT+1)
static

Definition at line 224 of file lz4.cxx.

◆ MLZ4_skipTrigger

const U32 MLZ4_skipTrigger = 6
static

Definition at line 343 of file lz4.cxx.

◆ prime5bytes

const U64 prime5bytes = 889523592379ULL
static

Definition at line 389 of file lz4.cxx.