• Home
  • Raw
  • Download

Lines Matching +full:- +full:wno +full:- +full:invalid +full:- +full:source +full:- +full:encoding

2  *  LZ4 - Fast LZ compression algorithm
4 * Copyright (C) 2011-present, Yann Collet.
6 BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php)
8 Redistribution and use in source and binary forms, with or without
12 * Redistributions of source code must retain the above copyright
32 - LZ4 homepage : http://www.lz4.org
33 - LZ4 source repository : https://github.com/lz4/lz4
42 /* --- Dependency --- */
50 scalable with multi-cores CPU. It features an extremely fast decoder, with speed in
51 multiple GB/s per core, typically reaching RAM speed limits on multi-core systems.
53 The LZ4 compression library provides in-memory compression and decompression functions.
55 - a single step (described as Simple Functions)
56 - a single step, reusing a context (described in Advanced Functions)
57 - unbounded multiple steps (described as Streaming compression)
60 Decompressing an lz4-compressed block also requires metadata (such as compressed size).
64 take care of encoding standard metadata alongside LZ4-compressed blocks.
93 /*------ Version ------*/
95 #define LZ4_VERSION_MINOR 8 /* for new (non-breaking) interface capabilities */
96 #define LZ4_VERSION_RELEASE 3 /* for tweaks, bug-fixes, or development */
109 /*-************************************
114 …* Memory usage formula : N->2^N Bytes (examples : 10 -> 1KB; 12 -> 4KB ; 16 -> 64KB; 20 -> 1MB; et…
123 /*-************************************
134 …st buffer overflow scenarios (never writes outside 'dst' buffer, nor read outside 'source' buffer).
146 …If the source stream is detected malformed, the function will stop decoding and return a negative …
152 /*-************************************
162 …Macro LZ4_COMPRESSBOUND() is also provided for compilation-time evaluation (stack memory allocatio…
174 …It's a trade-off. It can be fine tuned, with each successive value providing roughly +~3% to speed.
185 and allocate it on 8-bytes boundaries (using malloc() typically).
217 * @return : number of bytes read from source buffer (== compressed size).
218 …* If the source stream is detected malformed, the function stops decoding and returns a …
236 * If source stream is detected malformed, function returns a negative result.
255 /*-*********************************************
268 * An LZ4_stream_t structure can be allocated once and re-used multiple times.
294 …* Note 2 : The previous 64KB of source data is __assumed__ to remain present, unmodified, at same…
296 …* Note 3 : When input is structured as a double-buffer, each buffer can have any size, including …
300 * Note 4 : If input buffer is a ring-buffer, it can have any size, including < 64 KB.
302 * Note 5 : After an error, the stream status is invalid, it can only be reset or freed.
316 /*-**********************************************
324 * A tracking context can be re-used multiple times.
330 * An LZ4_streamDecode_t context can be allocated once and re-used multiple times.
345 * to be compatible with any source respecting maxBlockSize condition.
347 * or 0 if there is an error (invalid maxBlockSize).
360 * - Decompression buffer size is _at least_ LZ4_decoderRingBufferSize(maxBlockSize).
362 * In which case, encoding and decoding buffers do not need to be synchronized.
363 …* Actually, data can be produced by any source compliant with LZ4 format specification, and res…
364 * - Synchronized mode :
368 * _then_ decoding & encoding ring buffer can have any size, including small ones ( < 64 KB).
369 * - Decompression buffer is larger than encoding buffer, by a minimum of maxBlockSize more bytes.
370 * In which case, encoding and decoding buffers do not need to be synchronized,
371 * and encoding ring buffer can have any size, including small ones ( < 64 KB).
384 * They are stand-alone, and don't need an LZ4_streamDecode_t structure.
395 /*-************************************
411 * Using this in advance of a non- streaming-compression function is redundant,
423 * - returned from LZ4_createStream()
424 * - reset by LZ4_resetStream()
425 * - memset(stream, 0, sizeof(LZ4_stream_t)), though this is discouraged
426 * - the stream was in a valid state and was reset by LZ4_resetStream_fast()
427 * - the stream was in a valid state and was then used in any compression call
429 * - the stream was in an indeterminate state and was used in a compression
456 * Rather than re-loading the dictionary buffer into a working context before
457 * each compression, or copying a pre-loaded dictionary's LZ4_stream_t into a
458 * working LZ4_stream_t, this function introduces a no-copy setup mechanism,
459 * in which the working stream references the dictionary stream in-place.
468 * If a dictionary is provided, it replaces any pre-existing stream history.
475 * stream (and source buffer) must remain in-place / accessible / unchanged
482 /*-************************************
489 #define LZ4_HASHLOG (LZ4_MEMORY_USAGE-2)
544 #define LZ4_STREAMSIZE_U64 ((1 << (LZ4_MEMORY_USAGE-3)) + 4)
568 /*-************************************
575 typically with -Wno-deprecated-declarations for gcc
597 …fault() instead") LZ4LIB_API int LZ4_compress (const char* source, char* dest, int s…
598 …fault() instead") LZ4LIB_API int LZ4_compress_limitedOutput (const char* source, char* dest, int s…
599 …B_API int LZ4_compress_withState (void* state, const char* source, char* dest, int i…
600 …B_API int LZ4_compress_limitedOutput_withState (void* state, const char* source, char* dest, int i…
601 …mpress_continue (LZ4_stream_t* LZ4_streamPtr, const char* source, char* dest, int i…
602 …mpress_limitedOutput_continue (LZ4_stream_t* LZ4_streamPtr, const char* source, char* dest, int i…
605 …4_decompress_fast() instead") LZ4LIB_API int LZ4_uncompress (const char* source, char* dest, int o…
606 …) instead") LZ4LIB_API int LZ4_uncompress_unknownOutputSize (const char* source, char* dest, int i…