-
Notifications
You must be signed in to change notification settings - Fork 14
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
ZSTD_findDecompressedSize is ZSTDLIB_STATIC_API #50
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Here is the declaration of
ZSTD_findDecompressedSize
which is to used to implementTranscodingStreams.expectedsize
:https://github.com/facebook/zstd/blob/78955f5f9ddb3601566884ce217d91c132f5edc1/lib/zstd.h#L1455
This appears to come with the following warning.
https://github.com/facebook/zstd/blob/78955f5f9ddb3601566884ce217d91c132f5edc1/lib/zstd.h#L1193-L1200
An implementation that uses
ZSTD_getFrameContentSize
may be more stable directly.ZSTD_getFrameContentSize
only obtains the size of the first frame whileZSTD_findDecompressedSize
appears to iterate over many frames, usingZSTD_getFrameContentSize
for each frame, accumulating the total. In theory, we could write the equivalent function if needed.This is only going to be a problem if someone ever tries to use CodecZstd.jl with libzstd built with
ZSTDLIB_STATIC_API
set to something that hides the static symbols.The text was updated successfully, but these errors were encountered: