Support getting block info for decompression
- Dominant language
- C
- Stars
- 27.9k
- Forks
- 2.6k
- Avg merge
- 1d 3h
- Merged PRs (30d)
- 8
Description
**Is your feature request related to a problem? Please describe.**
I am developing a `ZstdDecoder` on netty, network data packets are transmitted in blocks, and netty as a framework, in order to achieve universality, developers cannot be required to be compatible with our protocol. Therefore, is it possible to provide a method to determine the size of compressed data blocks during block decompression? I use the [zstd-jni](https://github.com/luben/zstd-jni), and submitted a issue, but this repo cannot support this because zstd library does not expose any block info. Is this possible to provide this for decompression?
**Describe the solution you'd like**
Support getting block info for decompression
**Describe alternatives you've considered**
It is not a good way to judge the size of the compressed package after failing to decompress, the best solution is providing the block info including `Last_Block` and `Block_Size` for decompression
**Additional context**
I see that the block header has `Last_Block` and `Block_Size` for `Compressed_Block` in [RFC-8478](https://datatracker.ietf.org/doc/html/rfc8478), Is this possible to add this?
Issue:
https://github.com/luben/zstd-jni/issues/271
Thanks a lot
Contributor guide
Assessment
This issue has not been assessed yet.