Class ZSTDCompressionParameters

  • All Implemented Interfaces:
    java.lang.AutoCloseable, NativeResource, Pointer

    public class ZSTDCompressionParameters
    extends Struct
    implements NativeResource

    Member documentation

    • windowLog – largest match distance: larger == more compression, more memory needed during decompression
    • chainLog – fully searched segment: larger == more compression, slower, more memory (useless for fast)
    • hashLog – dispatch table: larger == faster, more memory
    • searchLog – nb of searches: larger == more compression, slower
    • minMatch – match length searched: larger == faster decompression, sometimes less compression
    • targetLength – acceptable match size for optimal parser (only): larger == more compression, slower
    • strategy – see ZSTD_strategy definition


     struct ZSTD_compressionParameters {
         unsigned int windowLog;
         unsigned int chainLog;
         unsigned int hashLog;
         unsigned int searchLog;
         unsigned int minMatch;
         unsigned int targetLength;
         ZSTD_strategy strategy;
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.

        The struct member offsets.
    • Constructor Detail

      • ZSTDCompressionParameters

        public ZSTDCompressionParameters​(java.nio.ByteBuffer container)
        Creates a ZSTDCompressionParameters instance at the current position of the specified ByteBuffer container. Changes to the buffer's content will be visible to the struct instance and vice versa.

        The created instance holds a strong reference to the container object.