Skip to content

Support getting block info for decompression #3709

Open
@skyguard1

Description

@skyguard1

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, 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, Is this possible to add this?
Issue:
luben/zstd-jni#271
Thanks a lot

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions