The OpenD Programming Language

gamut.codecs.lz4

Undocumented in source.

Members

Functions

LZ4_COMPRESSBOUND
uint LZ4_COMPRESSBOUND(uint isize)

-

LZ4_NbCommonBytes
uint LZ4_NbCommonBytes(size_t val)
LZ4_compress
int LZ4_compress(const(char)* source, char* dest, int inputSize)

-

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

-

LZ4_compress_continue_generic
int LZ4_compress_continue_generic(void* LZ4_stream, const(char)* source, char* dest, int inputSize, int maxOutputSize, limitedOutput_directive limit)

-

LZ4_compress_forceExtDict
int LZ4_compress_forceExtDict(LZ4_stream_t* LZ4_dict, const(char)* source, char* dest, int inputSize)

Hidden debug function, to force separate dictionary mode

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

-

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

-

LZ4_createStream
LZ4_stream_t* LZ4_createStream()

-

LZ4_createStreamDecode
LZ4_streamDecode_t* LZ4_createStreamDecode()

If you prefer dynamic allocation methods, LZ4_createStreamDecode() provides a pointer (void*) towards an initialized LZ4_streamDecode_t structure.

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

-

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

_continue() : These decoding functions allow decompression of multiple blocks in "streaming" mode. Previously decoded blocks must still be available at the memory position where they were decoded. If it's not possible, save the relevant part of decoded data into a safe buffer, and indicate where it stands using LZ4_setStreamDecode()

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

Advanced decoding functions : _usingDict() : These decoding functions work the same as "_continue" ones, the dictionary must be explicitly provided within parameters

LZ4_decompress_generic
int LZ4_decompress_generic(const(char)* source, char* dest, int inputSize, int outputSize, int endOnInput, int partialDecoding, int targetOutputSize, int dict, const(ubyte)* lowPrefix, const(ubyte)* dictStart, size_t dictSize)

This generic decompression function cover all use cases. It shall be instantiated several times, using different sets of directives Note that it is essential this generic function is really inlined, in order to remove useless branches during compilation optimization.

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

-

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

_continue() : These decoding functions allow decompression of multiple blocks in "streaming" mode. Previously decoded blocks must still be available at the memory position where they were decoded. If it's not possible, save the relevant part of decoded data into a safe buffer, and indicate where it stands using LZ4_setStreamDecode()

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

debug function

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

-

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

Advanced decoding functions : _usingDict() : These decoding functions work the same as "_continue" ones, the dictionary must be explicitly provided within parameters

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

Advanced decoding functions : _usingDict() : These decoding functions work the same as "_continue" ones, the dictionary must be explicitly provided within parameters

LZ4_freeStream
int LZ4_freeStream(LZ4_stream_t* LZ4_stream)

-

LZ4_freeStreamDecode
int LZ4_freeStreamDecode(LZ4_streamDecode_t* LZ4_stream)

If you prefer dynamic allocation methods, LZ4_createStreamDecode() provides a pointer (void*) towards an initialized LZ4_streamDecode_t structure.

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

-

LZ4_resetStream
void LZ4_resetStream(LZ4_stream_t* LZ4_stream)

LZ4_initStream Use this function once, to init a newly allocated LZ4_stream_t structure Return : 1 if OK, 0 if error

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

-

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

LZ4_setStreamDecode Use this function to instruct where to find the dictionary This function is not necessary if previous data is still available where it was decoded. Loading a size of 0 is allowed (same effect as no dictionary). Return : 1 if OK, 0 if error

Structs

LZ4_streamDecode_t
struct LZ4_streamDecode_t

-

LZ4_stream_t
struct LZ4_stream_t

-

Variables

LZ4_MAX_INPUT_SIZE
enum int LZ4_MAX_INPUT_SIZE;

Constant

LZ4_MEMORY_USAGE
enum int LZ4_MEMORY_USAGE;

Tuning constant

LZ4_STREAMDECODESIZE
enum int LZ4_STREAMDECODESIZE;
LZ4_STREAMDECODESIZE_U64
enum int LZ4_STREAMDECODESIZE_U64;
LZ4_STREAMSIZE
enum int LZ4_STREAMSIZE;

Streaming constants

LZ4_STREAMSIZE_U64
enum int LZ4_STREAMSIZE_U64;

Streaming constants

LZ4_VERSION_MAJOR
enum int LZ4_VERSION_MAJOR;
LZ4_VERSION_MINOR
enum int LZ4_VERSION_MINOR;
LZ4_VERSION_NUMBER
enum int LZ4_VERSION_NUMBER;
LZ4_VERSION_RELEASE
enum int LZ4_VERSION_RELEASE;

Version constants

Meta