struct Compress::Brotli::WriterOptions

Defined in:

brotli/writer.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(mode : Compress::Brotli::LibBrotli::EncoderMode = LibBrotli::EncoderMode::ModeGeneric, quality : UInt32 = 11_u32, lgwin : UInt32 = 22_u32) #

[View source]

Class Method Detail

def self.default #

[View source]

Instance Method Detail

def default? #

[View source]
def lgwin : UInt32 #

Base 2 logarithm of the maximum input block size. Range is 10 to 24. Defaults to 22.


[View source]
def lgwin=(val : UInt32) #

[View source]
def mode : LibBrotli::EncoderMode #

compression mode


[View source]
def mode=(mode : LibBrotli::EncoderMode) #

compression mode


[View source]
def quality : UInt32 #

controls the compression speed vs compression density tradeoff. Higher the quality, slower the compression. Range is 0 to 11. Defaults to 11


[View source]
def quality=(val : UInt32) #

[View source]