Make seekable streams work w/ small buffers, misc fixes
This commit is contained in:
@@ -687,6 +687,8 @@ size_t ZSTD_insertBlock(ZSTD_DCtx* dctx, const void* blockStart, size_t blockSiz
|
||||
for a new compression operation.
|
||||
`maxChunkSize` indicates the size at which to automatically start a new
|
||||
seekable frame. `maxChunkSize == 0` implies the default maximum size.
|
||||
`checksumFlag` indicates whether or not the seek table should include chunk
|
||||
checksums on the uncompressed data for verification.
|
||||
@return : a size hint for input to provide for compression, or an error code
|
||||
checkable with ZSTD_isError()
|
||||
|
||||
@@ -714,7 +716,7 @@ size_t ZSTD_insertBlock(ZSTD_DCtx* dctx, const void* blockStart, size_t blockSiz
|
||||
<h3>Seekable compressor management</h3><pre></pre><b><pre>ZSTD_seekable_CStream* ZSTD_seekable_createCStream(void);
|
||||
size_t ZSTD_seekable_freeCStream(ZSTD_seekable_CStream* zcs);
|
||||
</pre></b><BR>
|
||||
<h3>Seekable compression functions</h3><pre></pre><b><pre>size_t ZSTD_seekable_initCStream(ZSTD_seekable_CStream* zcs, int compressionLevel, unsigned maxChunkSize);
|
||||
<h3>Seekable compression functions</h3><pre></pre><b><pre>size_t ZSTD_seekable_initCStream(ZSTD_seekable_CStream* zcs, int compressionLevel, int checksumFlag, unsigned maxChunkSize);
|
||||
size_t ZSTD_seekable_compressStream(ZSTD_seekable_CStream* zcs, ZSTD_outBuffer* output, ZSTD_inBuffer* input);
|
||||
size_t ZSTD_seekable_endChunk(ZSTD_seekable_CStream* zcs, ZSTD_outBuffer* output);
|
||||
size_t ZSTD_seekable_endStream(ZSTD_seekable_CStream* zcs, ZSTD_outBuffer* output);
|
||||
|
||||
Reference in New Issue
Block a user