Scoop API

scoop:scoop.compression:0.1.0

GzipOptions

class GzipOptions

source · line 146
public
public class GzipOptions public constructor(
    /**
     * The DEFLATE compression level passed to the backend.
     */
    public val level: Int = 6,
        /**
         * The base-two logarithm of the DEFLATE history window size.
         */
        public val windowBits: Int = 15,
    /**
     * The match and entropy-coding strategy used by DEFLATE.
     */
    public val strategy: DeflateStrategy = DeflateStrategy.Default,
    /**
     * The gzip header metadata emitted before compressed data.
     */
    public val metadata: GzipMetadata = GzipMetadata()
)

DEFLATE parameters and gzip header metadata for a gzip member.

property metadata

source · line 162
public
public val metadata: GzipMetadata = GzipMetadata()

get: public read-only

The gzip header metadata emitted before compressed data.

property windowBits

source · line 154
public
public val windowBits: Int = 15

get: public read-only

The base-two logarithm of the DEFLATE history window size.

constructor constructor

source · line 146
public
constructor(public val level: Int = 6, public val windowBits: Int = 15, public val strategy: DeflateStrategy = DeflateStrategy.Default, public val metadata: GzipMetadata = GzipMetadata())

property strategy

source · line 158
public
public val strategy: DeflateStrategy = DeflateStrategy.Default

get: public read-only

The match and entropy-coding strategy used by DEFLATE.

property level

source · line 150
public
public val level: Int = 6

get: public read-only

The DEFLATE compression level passed to the backend.