diff options
author | Yann Collet <cyan@fb.com> | 2017-08-10 23:53:57 (GMT) |
---|---|---|
committer | Yann Collet <cyan@fb.com> | 2017-08-10 23:53:57 (GMT) |
commit | 757497ae3db93a78d146ff573ae267f54e49c9b6 (patch) | |
tree | 2aab5a27525b46a6edd375842d21f911f162b067 /doc | |
parent | 4531637ecdc4b12154c66cc69cfaade185039e4c (diff) | |
download | lz4-757497ae3db93a78d146ff573ae267f54e49c9b6.zip lz4-757497ae3db93a78d146ff573ae267f54e49c9b6.tar.gz lz4-757497ae3db93a78d146ff573ae267f54e49c9b6.tar.bz2 |
implemented lz4frame decompression API
Diffstat (limited to 'doc')
-rw-r--r-- | doc/lz4frame_manual.html | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/doc/lz4frame_manual.html b/doc/lz4frame_manual.html index 9593181..2a625a6 100644 --- a/doc/lz4frame_manual.html +++ b/doc/lz4frame_manual.html @@ -176,13 +176,13 @@ LZ4F_errorCode_t LZ4F_freeCompressionContext(LZ4F_cctx* cctx); </p></pre><BR> <pre><b>size_t LZ4F_compressEnd(LZ4F_cctx* cctx, void* dstBuffer, size_t dstCapacity, const LZ4F_compressOptions_t* cOptPtr); -</b><p> To properly finish an LZ4 frame, invoke LZ4F_compressEnd(). - It will flush whatever data remained within `cctx` (like LZ4_flush()) - and properly finalize the frame, with an endMark and a checksum. +</b><p> To properly finish an LZ4 frame, invoke LZ4F_compressEnd(). + It will flush whatever data remained within `cctx` (like LZ4_flush()) + and properly finalize the frame, with an endMark and a checksum. `cOptPtr` is optional : NULL can be provided, in which case all options will be set to default. @return : number of bytes written into dstBuffer (necessarily >= 4 (endMark), or 8 if optional frame checksum is enabled) or an error code if it fails (which can be tested using LZ4F_isError()) - A successful call to LZ4F_compressEnd() makes `cctx` available again for another compression task. + A successful call to LZ4F_compressEnd() makes `cctx` available again for another compression task. </p></pre><BR> @@ -190,7 +190,7 @@ LZ4F_errorCode_t LZ4F_freeCompressionContext(LZ4F_cctx* cctx); <pre><b>typedef struct { unsigned stableDst; </b>/* pledge that at least 64KB+64Bytes of previously decompressed data remain unmodifed where it was decoded. This optimization skips storage operations in tmp buffers */<b> - unsigned reserved[3]; + unsigned reserved[3]; </b>/* must be set to zero for forward compatibility */<b> } LZ4F_decompressOptions_t; </b></pre><BR> <pre><b>LZ4F_errorCode_t LZ4F_createDecompressionContext(LZ4F_dctx** dctxPtr, unsigned version); |