slightly improved compression speed
This commit is contained in:
+9
-6
@@ -80,16 +80,19 @@ ZSTDLIB_API size_t ZSTD_compress( void* dst, size_t dstCapacity,
|
||||
|
||||
/*! ZSTD_getDecompressedSize() :
|
||||
* @return : decompressed size if known, 0 otherwise.
|
||||
note 1 : decompressed size could be wrong or intentionally modified !
|
||||
Always ensure result fits within application's authorized limits !
|
||||
Each application can set its own limit, depending on local limitations.
|
||||
For extended interoperability, it is recommended to support at least 8 MB.
|
||||
note 2 : when `0`, if precise failure cause is needed, use ZSTD_getFrameParams() to know more. */
|
||||
* note 1 : decompressed size could be wrong or intentionally modified !
|
||||
* Always ensure result fits within application's authorized limits !
|
||||
* Each application can set its own limit, depending on local restrictions.
|
||||
* For extended interoperability, it is recommended to support at least 8 MB.
|
||||
* note 2 : when `0`, if precise failure cause is needed, use ZSTD_getFrameParams() to know more.
|
||||
* note 3 : when `0`, and if no external guarantee about maximum possible decompressed size,
|
||||
* it's necessary to use "streaming mode" to decompress data. */
|
||||
unsigned long long ZSTD_getDecompressedSize(const void* src, size_t srcSize);
|
||||
|
||||
/*! ZSTD_decompress() :
|
||||
`compressedSize` : must be the _exact_ size of compressed input, otherwise decompression will fail.
|
||||
`dstCapacity` must be equal or larger than originalSize.
|
||||
`dstCapacity` must be equal or larger than originalSize (see ZSTD_getDecompressedSize() ).
|
||||
If maximum possible content size is unknown, use streaming mode to decompress data.
|
||||
@return : the number of bytes decompressed into `dst` (<= `dstCapacity`),
|
||||
or an errorCode if it fails (which can be tested using ZSTD_isError()) */
|
||||
ZSTDLIB_API size_t ZSTD_decompress( void* dst, size_t dstCapacity,
|
||||
|
||||
Reference in New Issue
Block a user