Skip to content

Add Zstd.isLastBlock() for decompression #271

@skyguard1

Description

@skyguard1

As mentioned in this issue, 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? We may not need to use streaming compression, but compressed block transmission is a very common requirement. My suggestion is to use two methods like this:
public boolean isLastBlock(ByteBuffer src)
or
public int blockSize(ByteBuffer src)
in Zstd. It is not intended to expose the details of the block, but to determine the size of the compressed data block.
Thanks a lot

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions