Versions in this module Expand all Collapse all v0 v0.1.0 Aug 25, 2026 Changes in this version + type Decoder struct + func (r *Decoder) DecodeCumulative(total uint32) uint32 + func (r *Decoder) DecodeLaplace(fs0 uint32, decay uint32) int + func (r *Decoder) DecodeRawBits(n uint) uint32 + func (r *Decoder) DecodeSymbolLogP(logp uint) uint32 + func (r *Decoder) DecodeSymbolWithICDF(cumulativeDistributionTable []uint) uint32 + func (r *Decoder) DecodeUniform(total uint32) (uint32, bool) + func (r *Decoder) FinalRange() uint32 + func (r *Decoder) Init(data []byte) + func (r *Decoder) RemainingBits() int + func (r *Decoder) SetInternalValues(data []byte, bitsRead uint, rangeSize uint32, highAndCodedDifference uint32) + func (r *Decoder) SetStorageSize(size int) + func (r *Decoder) Tell() uint + func (r *Decoder) TellFrac() uint + func (r *Decoder) UpdateCumulative(low, high, total uint32) + type Encoder struct + func (e *Encoder) Done() []byte + func (e *Encoder) EncodeCumulative(low, high, total uint32) + func (e *Encoder) EncodeLaplace(fs0, decay uint32, value int) int + func (e *Encoder) EncodeRawBits(n uint, value uint32) + func (e *Encoder) EncodeSymbolLogP(logp uint, symbol uint32) + func (e *Encoder) EncodeSymbolWithICDF(cumulativeDistributionTable []uint, symbol uint32) + func (e *Encoder) EncodeUniform(total, symbol uint32) + func (e *Encoder) FinalRange() uint32 + func (e *Encoder) FlushInto(dst []byte) int + func (e *Encoder) FlushIntoPadded(dst []byte, size int) int + func (e *Encoder) Init() + func (e *Encoder) PatchInitialBits(value uint32, bitCount uint) bool + func (e *Encoder) Restore(s *State) + func (e *Encoder) SaveInto(dst *State) + func (e *Encoder) Tell() uint + func (e *Encoder) TellFrac() uint + type State struct