v0.7.1
Non-Breaking Changes
- Introduced a new submodule to encapsulate all
ccalls, LibZstd, that is generated by the master branch of Clang.jl. This exposes - Modified libzstd.jl to use the new LibZstd submodule rather than using
ccalldirectly. InBufferis now an alias forLibZstd.ZSTD_inBuffer_swith no change in fields.OutBufferis now an alias forLibZstd.ZSTD_outBuffer_swith no change in fieldsreset!now usesZSTD_CCtx_setPledgedSrcSize(wrapped in LibZstd) rather than the deprecatedZSTD_resetCStream. Asrcsizeof0is interpreted asZSTD_CONTENTSIZE_UNKNOWNas with the case withZSTD_resetCStream.Base.unsafe_convertis implemented forInBuffer,OutBuffer,CStream, andDStream, allowing one to pass these types directly to methods inLibZstdrather than one of their fields. This will be used in a future release when #30 is merged.
Known bugs
- Objects passed into several low level functions may not be preserved from garbage collection #30. Consider using
Base.GC.@preserveto mitigate this issue.