Skip to content

Is it possible to provide a way to determine the size of the compressed data block when data is transmitted in segments #165

@skyguard1

Description

@skyguard1

Hello, I am using zstd-jni to write a pr(netty/netty#10422), and currently encounter 2 problems:

  1. Zstd.decompressedSize() may return 0, is there any way to return the compressed block size of the data block
  2. In reality, network packs data in frames. It's a frequent use-case that data arrive to the server in multiple chunks of a different length. The expected length should be taken from zstd header and decoder should wait until that data available before attempting to decompress. At present, a method is needed to determine whether the size of a complete compressed data block has been reached

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