struct Compress::Brotli::WriterOptions
- Compress::Brotli::WriterOptions
- Struct
- Value
- Object
Defined in:
brotli/writer.crConstructors
Class Method Summary
Instance Method Summary
- #default?
-
#lgwin : UInt32
Base 2 logarithm of the maximum input block size.
- #lgwin=(val : UInt32)
-
#mode : LibBrotli::EncoderMode
compression mode
-
#mode=(mode : LibBrotli::EncoderMode)
compression mode
-
#quality : UInt32
controls the compression speed vs compression density tradeoff.
- #quality=(val : UInt32)
Constructor Detail
def self.new(mode : Compress::Brotli::LibBrotli::EncoderMode = LibBrotli::EncoderMode::ModeGeneric, quality : UInt32 = 11_u32, lgwin : UInt32 = 22_u32)
#
Class Method Detail
Instance Method Detail
def lgwin : UInt32
#
Base 2 logarithm of the maximum input block size. Range is 10 to 24. Defaults to 22.
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