-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question and suggestion - behavior with small buffers and errors #4183
Comments
Yes, this design works, and is in active usage.
Yes, but don't overthink it. The difference is small, and only perceptible at fastest compression levels.
We probably assign different meaning to these words.
They are all published in
Yes
The API manual is automatically generated from Ideally, we would duplicate or expose its definition in Possibly including edit : oh, but this would require moving
The naming convention has mostly converged overtime to use The only error code using While we could consider updating this specific error name to use |
Thank you so much for your help and support, much appreciated! May I have some more suggestions please
At the very top of the manual add statement that it is auto-generated using sources. Then people (like me) will be discounting the quality as it was not written by the professional manual writers. To ensure reader's expectations from the very start.
Add a section with error codes into the manual, with corresponding enum values (names) and descriptions what are they about. I hope ZSTD_getErrorName() are descriptive enough and you can just automatically create the table with corresponding names and description strings. That may help and be a quick reference for newbies. |
Behavior with Small Buffers and Errors**
Suggested Answer for #4183 (Generalized) If issue #4183 refers to small buffer behavior and errors:
|
I am a starter with zstd (using simple ZSTD_compress and ZSTD_decompress) and have three things to say after some research and having specific task.
Most probably I can find the answers looking into the code, but I'd like to state the issues I have at least as a first step.
In general, looking at the documentation here herel I was unable to quickly find how to handle the errors except using
unsigned ZSTD_isError(size_t code); /!< tells if a
size_t
function result is an error code /const char ZSTD_getErrorName(size_t code); /!< provides readable string from an error code */
with first function saying that there's an error, and second returning the string. But what is exact error? This lists errors, am I expected to compare against those identifiers using ZSTD_getErrorCode()? The documentation I linked to earlier does not mention this function! Also what is the error enum for out of destination buffer issues - ZSTD_error_noForwardProgress_destFull? What does this name mean?
Thanks.
The text was updated successfully, but these errors were encountered: