Scoop API

scoop:scoop.compression:0.1.0

BrotliOptions

class BrotliOptions

source · line 168
public
public class BrotliOptions public constructor(
    /**
     * The encoder's quality level, trading work for compressed size.
     */
    public val quality: Int = 5,
        /**
         * The base-two logarithm of the Brotli history window size.
         */
        public val windowBits: Int = 22,
    /**
     * The content model selected for the Brotli encoder.
     */
    public val mode: BrotliMode = BrotliMode.Generic
)

Brotli quality, window size, and content mode; invalid values fail at codec construction.

property mode

source · line 180
public
public val mode: BrotliMode = BrotliMode.Generic

get: public read-only

The content model selected for the Brotli encoder.

property quality

source · line 172
public
public val quality: Int = 5

get: public read-only

The encoder's quality level, trading work for compressed size.

property windowBits

source · line 176
public
public val windowBits: Int = 22

get: public read-only

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