-
Notifications
You must be signed in to change notification settings - Fork 199
Add Zstd.isLastBlock() for decompression #271
Copy link
Copy link
Closed
Description
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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels