Comments (3)
ZSTD_decompressContinue requires previous decompressed buffer
Yes, this is correct.
I will add some comments to make this condition clear.
As a general notice : note that API within zstd_static.h
should be considered experimental, not yet ready for general usage, nor stable. Typically, I'm not yet satisfied by the block streaming interface, so the API itself and/or its properties may change in the future.
fileio.c is GPL again
wNbBlocks is a kind of magic number (because undocumented)
Correct.
fileio.c
is not ready for usage beyond ztsdcli
. It would need some serious shakeup to be considered "safe and stable" for integration into any 3rd-party program. The constant you underlined is one of the things to improve, and there are quite a lot more. For example, lz4io.c
is not even thread-safe.
When I feel it's good enough to be used outside of ztsdcli
context, it will be considered for BSD license.
Regards
from zstd.
-
There is a new streaming API,
zstd_buffered
, which is highly recommended for streaming applications. It takes care of everything, and therefore eliminates any requirement regarding buffer management and data persistence from the caller. -
The bufferless streaming API still exists (
zstd_static.h
) and has been improved and clarified. It provides the core functionalities forzstd_buffered
. Should you prefer to manage directly your own buffers, it's the way to go.
Please let me know if streaming API is still an issue for you.
from zstd.
It looks fine (at least currently). http://pastebin.com/2WH0iERW
from zstd.
Related Issues (20)
- Export "selected" CMake target for zstd HOT 5
- [Question] Understanding of compression level with external sequence producer HOT 2
- zstd fails to process some filenames on Windows [we need a hero] HOT 3
- We need a ZStd JavaScript library HOT 1
- Compiler warnings present when integrated with Swift Package Manager
- will zstd get nvcomp acceleration or a gpu support like g-brotli? HOT 1
- How can I change the window size? HOT 1
- Increase minimum C standard from C89/C90 to C11 HOT 3
- New zstd 1.5.5 version is two times slower in compression speed than older 1.4.5 version HOT 11
- ZSTD with T option does not scale on multicore CPUs HOT 7
- Question about FSE Huffman literal part
- C++ Builder and mem.h ambiguity HOT 7
- Reducing DCtx Size for Embedded Systems (like esp32) HOT 2
- Automatic code formatting? HOT 1
- No `uncompressed` and `ratio` information in `zstd --list` output if the zstd file is created via pipe HOT 3
- lz4 "legacy" format support HOT 1
- Add common file types that are compressed to ' --exclude-compressed' HOT 3
- windows
- compressing files containing multiple similar portions HOT 5
- Using ZSTD_compressBound for Streaming Input HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zstd.