class

Brotli::Enc::Histogram

Inherits Reference < Object

histogram_inc.h — a simple container for histograms of data in blocks.

Constructors

command
Source
distance
Source
literal
Source
new(data_size : Int32, data : Slice(UInt32), total_count : UInt32, bit_cost : Float64)
Source
new(data_size : Int32)
Source

Instance methods

add(val : Int) : Nil
Source
add_histogram(other : Histogram) : Nil

HistogramAddHistogram.

Source
bit_cost
Source
bit_cost=(bit_cost : Float64)
Source
clear

HistogramClear.

Source
copy_from(other : Histogram) : Nil
Source
data
Source
data_size
Source
total_count
Source
total_count=(total_count : UInt32)
Source