Class ZstdDecompressor.Builder

    • Method Detail

      • maxWindowLog

        @UnstableApi
        public ZstdDecompressor.Builder maxWindowLog​(int maxWindowLog)
        Set the upper bound on the accepted Window_Log.

        The window log size bounds the memory usage of the sliding window for ZSTD frame decompression. Frames declaring a larger window will be rejected to bound the memory the decompressor may allocate per stream.

        Parameters:
        maxWindowLog - upper bound on the Window_Log field of incoming frames; must be in [10, 31]
        Returns:
        This builder