NVBIO
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Macros | Functions
lz4.h File Reference

Go to the source code of this file.

Classes

struct  LZ4_stream_t
 
struct  LZ4_streamDecode_t
 

Macros

#define LZ4_VERSION_MAJOR   1 /* for breaking interface changes */
 
#define LZ4_VERSION_MINOR   5 /* for new (non-breaking) interface capabilities */
 
#define LZ4_VERSION_RELEASE   0 /* for tweaks, bug-fixes, or development */
 
#define LZ4_VERSION_NUMBER   (LZ4_VERSION_MAJOR *100*100 + LZ4_VERSION_MINOR *100 + LZ4_VERSION_RELEASE)
 
#define LZ4_MEMORY_USAGE   14
 
#define LZ4_MAX_INPUT_SIZE   0x7E000000 /* 2 113 929 216 bytes */
 
#define LZ4_COMPRESSBOUND(isize)   ((unsigned int)(isize) > (unsigned int)LZ4_MAX_INPUT_SIZE ? 0 : (isize) + ((isize)/255) + 16)
 
#define LZ4_STREAMSIZE_U64   ((1 << (LZ4_MEMORY_USAGE-3)) + 4)
 
#define LZ4_STREAMSIZE   (LZ4_STREAMSIZE_U64 * sizeof(long long))
 
#define LZ4_STREAMDECODESIZE_U64   4
 
#define LZ4_STREAMDECODESIZE   (LZ4_STREAMDECODESIZE_U64 * sizeof(unsigned long long))
 

Functions

int LZ4_versionNumber (void)
 
int LZ4_compress (const char *source, char *dest, int sourceSize)
 
int LZ4_decompress_safe (const char *source, char *dest, int compressedSize, int maxDecompressedSize)
 
int LZ4_compressBound (int isize)
 
int LZ4_compress_limitedOutput (const char *source, char *dest, int sourceSize, int maxOutputSize)
 
int LZ4_sizeofState (void)
 
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_fast (const char *source, char *dest, int originalSize)
 
int LZ4_decompress_safe_partial (const char *source, char *dest, int compressedSize, int targetOutputSize, int maxDecompressedSize)
 
void LZ4_resetStream (LZ4_stream_t *LZ4_streamPtr)
 
LZ4_stream_tLZ4_createStream (void)
 
int LZ4_freeStream (LZ4_stream_t *LZ4_streamPtr)
 
int LZ4_loadDict (LZ4_stream_t *LZ4_streamPtr, const char *dictionary, int dictSize)
 
int LZ4_compress_continue (LZ4_stream_t *LZ4_streamPtr, const char *source, char *dest, int inputSize)
 
int LZ4_compress_limitedOutput_continue (LZ4_stream_t *LZ4_streamPtr, const char *source, char *dest, int inputSize, int maxOutputSize)
 
int LZ4_saveDict (LZ4_stream_t *LZ4_streamPtr, char *safeBuffer, int dictSize)
 
LZ4_streamDecode_tLZ4_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 maxDecompressedSize)
 
int LZ4_decompress_fast_continue (LZ4_streamDecode_t *LZ4_streamDecode, const char *source, char *dest, int originalSize)
 
int LZ4_decompress_safe_usingDict (const char *source, char *dest, int compressedSize, int maxDecompressedSize, const char *dictStart, int dictSize)
 
int LZ4_decompress_fast_usingDict (const char *source, char *dest, int originalSize, const char *dictStart, int dictSize)
 
void * LZ4_create (const char *inputBuffer)
 
int LZ4_sizeofStreamState (void)
 
int LZ4_resetStreamState (void *state, const char *inputBuffer)
 
char * LZ4_slideInputBuffer (void *state)
 
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)
 

Macro Definition Documentation

#define LZ4_COMPRESSBOUND (   isize)    ((unsigned int)(isize) > (unsigned int)LZ4_MAX_INPUT_SIZE ? 0 : (isize) + ((isize)/255) + 16)

Definition at line 101 of file lz4.h.

#define LZ4_MAX_INPUT_SIZE   0x7E000000 /* 2 113 929 216 bytes */

Definition at line 100 of file lz4.h.

#define LZ4_MEMORY_USAGE   14

Definition at line 65 of file lz4.h.

#define LZ4_STREAMDECODESIZE   (LZ4_STREAMDECODESIZE_U64 * sizeof(unsigned long long))

Definition at line 241 of file lz4.h.

#define LZ4_STREAMDECODESIZE_U64   4

Definition at line 240 of file lz4.h.

#define LZ4_STREAMSIZE   (LZ4_STREAMSIZE_U64 * sizeof(long long))

Definition at line 176 of file lz4.h.

#define LZ4_STREAMSIZE_U64   ((1 << (LZ4_MEMORY_USAGE-3)) + 4)

Definition at line 175 of file lz4.h.

#define LZ4_VERSION_MAJOR   1 /* for breaking interface changes */

Definition at line 49 of file lz4.h.

#define LZ4_VERSION_MINOR   5 /* for new (non-breaking) interface capabilities */

Definition at line 50 of file lz4.h.

#define LZ4_VERSION_NUMBER   (LZ4_VERSION_MAJOR *100*100 + LZ4_VERSION_MINOR *100 + LZ4_VERSION_RELEASE)

Definition at line 52 of file lz4.h.

#define LZ4_VERSION_RELEASE   0 /* for tweaks, bug-fixes, or development */

Definition at line 51 of file lz4.h.

Function Documentation

int LZ4_compress ( const char *  source,
char *  dest,
int  sourceSize 
)

Definition at line 710 of file lz4.c.

int LZ4_compress_continue ( LZ4_stream_t LZ4_streamPtr,
const char *  source,
char *  dest,
int  inputSize 
)

Definition at line 883 of file lz4.c.

int LZ4_compress_limitedOutput ( const char *  source,
char *  dest,
int  sourceSize,
int  maxOutputSize 
)

Definition at line 730 of file lz4.c.

int LZ4_compress_limitedOutput_continue ( LZ4_stream_t LZ4_streamPtr,
const char *  source,
char *  dest,
int  inputSize,
int  maxOutputSize 
)

Definition at line 888 of file lz4.c.

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

Definition at line 1343 of file lz4.c.

int LZ4_compress_withState ( void *  state,
const char *  source,
char *  dest,
int  inputSize 
)

Definition at line 1332 of file lz4.c.

int LZ4_compressBound ( int  isize)

Definition at line 429 of file lz4.c.

void* LZ4_create ( const char *  inputBuffer)

Definition at line 1314 of file lz4.c.

LZ4_stream_t* LZ4_createStream ( void  )

Definition at line 765 of file lz4.c.

LZ4_streamDecode_t* LZ4_createStreamDecode ( void  )

Definition at line 1152 of file lz4.c.

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

Definition at line 1131 of file lz4.c.

int LZ4_decompress_fast_continue ( LZ4_streamDecode_t LZ4_streamDecode,
const char *  source,
char *  dest,
int  originalSize 
)

Definition at line 1217 of file lz4.c.

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

Definition at line 1272 of file lz4.c.

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

Definition at line 1361 of file lz4.c.

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

Definition at line 1121 of file lz4.c.

int LZ4_decompress_safe_continue ( LZ4_streamDecode_t LZ4_streamDecode,
const char *  source,
char *  dest,
int  compressedSize,
int  maxDecompressedSize 
)

Definition at line 1188 of file lz4.c.

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

Definition at line 1126 of file lz4.c.

int LZ4_decompress_safe_usingDict ( const char *  source,
char *  dest,
int  compressedSize,
int  maxDecompressedSize,
const char *  dictStart,
int  dictSize 
)

Definition at line 1267 of file lz4.c.

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

Definition at line 1356 of file lz4.c.

int LZ4_freeStream ( LZ4_stream_t LZ4_streamPtr)

Definition at line 773 of file lz4.c.

int LZ4_freeStreamDecode ( LZ4_streamDecode_t LZ4_stream)

Definition at line 1158 of file lz4.c.

int LZ4_loadDict ( LZ4_stream_t LZ4_streamPtr,
const char *  dictionary,
int  dictSize 
)

Definition at line 780 of file lz4.c.

void LZ4_resetStream ( LZ4_stream_t LZ4_streamPtr)

Definition at line 760 of file lz4.c.

int LZ4_resetStreamState ( void *  state,
const char *  inputBuffer 
)

Definition at line 1307 of file lz4.c.

int LZ4_saveDict ( LZ4_stream_t LZ4_streamPtr,
char *  safeBuffer,
int  dictSize 
)

Definition at line 915 of file lz4.c.

int LZ4_setStreamDecode ( LZ4_streamDecode_t LZ4_streamDecode,
const char *  dictionary,
int  dictSize 
)

Definition at line 1171 of file lz4.c.

int LZ4_sizeofState ( void  )

Definition at line 1330 of file lz4.c.

int LZ4_sizeofStreamState ( void  )

Definition at line 1299 of file lz4.c.

char* LZ4_slideInputBuffer ( void *  state)

Definition at line 1321 of file lz4.c.

int LZ4_versionNumber ( void  )

Definition at line 428 of file lz4.c.