You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/****************************************************************************************
* experimental API (static linking only)
****************************************************************************************
* The following symbols and constants
* are not planned to join "stable API" status in the near future.
* They can still change in future versions.
* Some of them are planned to remain in the static_only section indefinitely.
* Some of them might be removed in the future (especially when redundant with existing stable functions)
* ***************************************************************************************/
An implementation that uses ZSTD_getFrameContentSize may be more stable directly. ZSTD_getFrameContentSize only obtains the size of the first frame while ZSTD_findDecompressedSize appears to iterate over many frames, using ZSTD_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:
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: