GRASS GIS 7 Programmer's Manual
7.4.4(2019)-exported
|
Go to the source code of this file.
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 | 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 */ |
#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 | |
int | LZ4_versionNumber (void) |
int | LZ4_compressBound (int isize) |
int | LZ4_sizeofState () |
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) |
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) |
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 () |
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) |
#define ACCELERATION_DEFAULT 1 |
Definition at line 50 of file lz4.c.
Referenced by LZ4_compress_fast_extState().
#define ALLOCATOR | ( | n, | |
s | |||
) | calloc(n,s) |
Definition at line 106 of file lz4.c.
Referenced by LZ4_compress_destSize(), LZ4_compress_fast(), LZ4_create(), LZ4_createStream(), and LZ4_createStreamDecode().
#define FREEMEM free |
Definition at line 107 of file lz4.c.
Referenced by LZ4_compress_fast(), LZ4_freeStream(), and LZ4_freeStreamDecode().
#define GB *(1U<<30) |
Definition at line 228 of file lz4.c.
Referenced by LZ4_loadDict().
#define HASH_SIZE_U32 (1 << LZ4_HASHLOG) /* required as macro for static allocation */ |
#define HASH_UNIT sizeof(size_t) |
Definition at line 955 of file lz4.c.
Referenced by LZ4_loadDict().
#define HASHTABLESIZE (1 << LZ4_MEMORY_USAGE) |
#define KB *(1 <<10) |
Definition at line 226 of file lz4.c.
Referenced by LZ4_decompress_fast(), LZ4_decompress_fast_withPrefix64k(), LZ4_decompress_generic(), LZ4_decompress_safe_withPrefix64k(), LZ4_decompress_usingDict_generic(), LZ4_loadDict(), LZ4_saveDict(), and LZ4_slideInputBuffer().
#define LASTLITERALS 5 |
Definition at line 222 of file lz4.c.
Referenced by LZ4_compress_generic().
#define LZ4_HASHLOG (LZ4_MEMORY_USAGE-2) |
#define LZ4_STATIC_ASSERT | ( | c | ) | { enum { LZ4_static_assert = 1/(int)(!!(c)) }; } /* use only *after* variable declarations */ |
Definition at line 242 of file lz4.c.
Referenced by LZ4_createStream().
#define MEM_INIT memset |
Definition at line 109 of file lz4.c.
Referenced by LZ4_resetStream().
#define MFLIMIT (COPYLENGTH+MINMATCH) |
Definition at line 223 of file lz4.c.
Referenced by LZ4_compress_generic(), and LZ4_decompress_generic().
#define ML_BITS 4 |
Definition at line 233 of file lz4.c.
Referenced by LZ4_decompress_generic().
#define RUN_MASK ((1U<<RUN_BITS)-1) |
Definition at line 236 of file lz4.c.
Referenced by LZ4_decompress_generic().
#define unlikely | ( | expr | ) | expect((expr) != 0, 0) |
Definition at line 99 of file lz4.c.
Referenced by LZ4_decompress_generic().
enum dict_directive |
enum dictIssue_directive |
enum earlyEnd_directive |
enum tableType_t |
int LZ4_compress | ( | const char * | source, |
char * | dest, | ||
int | inputSize | ||
) |
Definition at line 1456 of file lz4.c.
References LZ4_compress_default(), and LZ4_compressBound().
int LZ4_compress_continue | ( | LZ4_stream_t * | LZ4_stream, |
const char * | source, | ||
char * | dest, | ||
int | inputSize | ||
) |
Definition at line 1460 of file lz4.c.
References LZ4_compress_fast_continue(), and LZ4_compressBound().
int LZ4_compress_default | ( | const char * | source, |
char * | dest, | ||
int | inputSize, | ||
int | maxOutputSize | ||
) |
Definition at line 697 of file lz4.c.
References LZ4_compress_fast().
Referenced by LZ4_compress(), and LZ4_compress_limitedOutput().
int LZ4_compress_destSize | ( | const char * | src, |
char * | dst, | ||
int * | srcSizePtr, | ||
int | targetDstSize | ||
) |
int LZ4_compress_fast | ( | const char * | source, |
char * | dest, | ||
int | inputSize, | ||
int | maxOutputSize, | ||
int | acceleration | ||
) |
Definition at line 679 of file lz4.c.
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 | ||
) |
Definition at line 1011 of file lz4.c.
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 | ||
) |
Definition at line 657 of file lz4.c.
References ACCELERATION_DEFAULT, LZ4_compressBound(), and LZ4_resetStream().
Referenced by 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 | ||
) |
Definition at line 705 of file lz4.c.
References LZ4_resetStream().
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 | ||
) |
Definition at line 435 of file lz4.c.
References byU16, LASTLITERALS, LZ4_MAX_INPUT_SIZE, MFLIMIT, noDict, usingExtDict, and withPrefix64k.
int LZ4_compress_limitedOutput | ( | const char * | source, |
char * | dest, | ||
int | inputSize, | ||
int | maxOutputSize | ||
) |
Definition at line 1455 of file lz4.c.
References LZ4_compress_default().
int LZ4_compress_limitedOutput_continue | ( | LZ4_stream_t * | LZ4_stream, |
const char * | src, | ||
char * | dst, | ||
int | srcSize, | ||
int | maxDstSize | ||
) |
Definition at line 1459 of file lz4.c.
References LZ4_compress_fast_continue().
int LZ4_compress_limitedOutput_withState | ( | void * | state, |
const char * | src, | ||
char * | dst, | ||
int | srcSize, | ||
int | dstSize | ||
) |
Definition at line 1457 of file lz4.c.
References LZ4_compress_fast_extState().
int LZ4_compress_withState | ( | void * | state, |
const char * | src, | ||
char * | dst, | ||
int | srcSize | ||
) |
Definition at line 1458 of file lz4.c.
References LZ4_compress_fast_extState(), and LZ4_compressBound().
int LZ4_compressBound | ( | int | isize | ) |
Definition at line 372 of file lz4.c.
References LZ4_COMPRESSBOUND.
Referenced by LZ4_compress(), LZ4_compress_continue(), LZ4_compress_fast_extState(), and LZ4_compress_withState().
void* LZ4_create | ( | char * | inputBuffer | ) |
Definition at line 1489 of file lz4.c.
References ALLOCATOR, and LZ4_STREAMSIZE_U64.
LZ4_stream_t* LZ4_createStream | ( | void | ) |
Definition at line 935 of file lz4.c.
References ALLOCATOR, LZ4_resetStream(), LZ4_STATIC_ASSERT, LZ4_STREAMSIZE, and LZ4_STREAMSIZE_U64.
LZ4_streamDecode_t* LZ4_createStreamDecode | ( | void | ) |
int LZ4_decompress_fast | ( | const char * | source, |
char * | dest, | ||
int | originalSize | ||
) |
Definition at line 1298 of file lz4.c.
References endOnOutputSize, full, KB, LZ4_decompress_generic(), NULL, and withPrefix64k.
Referenced by LZ4_uncompress().
int LZ4_decompress_fast_continue | ( | LZ4_streamDecode_t * | LZ4_streamDecode, |
const char * | source, | ||
char * | dest, | ||
int | originalSize | ||
) |
Definition at line 1384 of file lz4.c.
References endOnOutputSize, full, LZ4_decompress_generic(), originalSize, and usingExtDict.
int LZ4_decompress_fast_usingDict | ( | const char * | source, |
char * | dest, | ||
int | originalSize, | ||
const char * | dictStart, | ||
int | dictSize | ||
) |
Definition at line 1439 of file lz4.c.
References LZ4_decompress_usingDict_generic().
int LZ4_decompress_fast_withPrefix64k | ( | const char * | source, |
char * | dest, | ||
int | originalSize | ||
) |
Definition at line 1510 of file lz4.c.
References endOnOutputSize, full, KB, LZ4_decompress_generic(), NULL, 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 | ||
) |
Definition at line 1110 of file lz4.c.
References endOnInputSize, KB, MFLIMIT, ML_BITS, RUN_MASK, and unlikely.
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 | ||
) |
Definition at line 1288 of file lz4.c.
References endOnInputSize, full, LZ4_decompress_generic(), noDict, and NULL.
Referenced by LZ4_uncompress_unknownOutputSize().
int LZ4_decompress_safe_continue | ( | LZ4_streamDecode_t * | LZ4_streamDecode, |
const char * | source, | ||
char * | dest, | ||
int | compressedSize, | ||
int | maxOutputSize | ||
) |
Definition at line 1355 of file lz4.c.
References endOnInputSize, full, LZ4_decompress_generic(), and usingExtDict.
int LZ4_decompress_safe_forceExtDict | ( | const char * | source, |
char * | dest, | ||
int | compressedSize, | ||
int | maxOutputSize, | ||
const char * | dictStart, | ||
int | dictSize | ||
) |
Definition at line 1445 of file lz4.c.
References endOnInputSize, full, LZ4_decompress_generic(), and usingExtDict.
int LZ4_decompress_safe_partial | ( | const char * | source, |
char * | dest, | ||
int | compressedSize, | ||
int | targetOutputSize, | ||
int | maxDecompressedSize | ||
) |
Definition at line 1293 of file lz4.c.
References endOnInputSize, LZ4_decompress_generic(), noDict, NULL, and partial.
int LZ4_decompress_safe_usingDict | ( | const char * | source, |
char * | dest, | ||
int | compressedSize, | ||
int | maxOutputSize, | ||
const char * | dictStart, | ||
int | dictSize | ||
) |
Definition at line 1434 of file lz4.c.
References LZ4_decompress_usingDict_generic().
int LZ4_decompress_safe_withPrefix64k | ( | const char * | source, |
char * | dest, | ||
int | compressedSize, | ||
int | maxOutputSize | ||
) |
Definition at line 1505 of file lz4.c.
References endOnInputSize, full, KB, LZ4_decompress_generic(), NULL, 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 | ||
) |
Definition at line 1421 of file lz4.c.
References full, KB, LZ4_decompress_generic(), noDict, NULL, usingExtDict, and withPrefix64k.
Referenced by LZ4_decompress_fast_usingDict(), and LZ4_decompress_safe_usingDict().
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 | ) |
Definition at line 943 of file lz4.c.
References MEM_INIT.
Referenced by LZ4_compress_fast_extState(), LZ4_compress_fast_force(), LZ4_createStream(), and LZ4_loadDict().
int LZ4_resetStreamState | ( | void * | state, |
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_sizeofState | ( | void | ) |
Definition at line 373 of file lz4.c.
References LZ4_STREAMSIZE.
int LZ4_sizeofStreamState | ( | ) |
Definition at line 1474 of file lz4.c.
References LZ4_STREAMSIZE.
char* LZ4_slideInputBuffer | ( | void * | LZ4_Data | ) |
Definition at line 1496 of file lz4.c.
References KB, and LZ4_saveDict().
int LZ4_uncompress | ( | const char * | source, |
char * | dest, | ||
int | outputSize | ||
) |
Definition at line 1468 of file lz4.c.
References LZ4_decompress_fast().
int LZ4_uncompress_unknownOutputSize | ( | const char * | source, |
char * | dest, | ||
int | isize, | ||
int | maxOutputSize | ||
) |
Definition at line 1469 of file lz4.c.
References LZ4_decompress_safe().
int LZ4_versionNumber | ( | void | ) |
Definition at line 371 of file lz4.c.
References LZ4_VERSION_NUMBER.