Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AlphaDecoder ¶
type AlphaDecoder struct{}
func NewAlphaDecoder ¶
func NewAlphaDecoder() *AlphaDecoder
type AlphaEncoder ¶
type AlphaEncoder struct {
// contains filtered or unexported fields
}
func NewAlphaEncoder ¶
func NewAlphaEncoder(w *BitsWriter) *AlphaEncoder
func (*AlphaEncoder) Flush ¶
func (enc *AlphaEncoder) Flush() error
func (*AlphaEncoder) Write ¶
func (enc *AlphaEncoder) Write(v uint)
type BitsReader ¶
type BitsReader struct {
// contains filtered or unexported fields
}
BitsReader reads bits from the given io.Reader.
func NewBitsReader ¶
func NewBitsReader(rd io.Reader) *BitsReader
NewBitsReader returns new a new Reader.
type BitsWriter ¶
type BitsWriter struct {
// contains filtered or unexported fields
}
BitsWriter writes bits into underlying io.Writer
func NewBitsWriter ¶
func NewBitsWriter(w io.Writer) *BitsWriter
NewBitsWriter returns a new Writer.
func (*BitsWriter) Flush ¶
func (w *BitsWriter) Flush() error
Flush writes any remaining bits to the underlying io.Writer. bits will be left-shifted.
type GammaDecoder ¶
type GammaDecoder struct{}
func NewGammaDecoder ¶
func NewGammaDecoder() *GammaDecoder
type GammaEncoder ¶
type GammaEncoder struct {
// contains filtered or unexported fields
}
func NewGammaEncoder ¶
func NewGammaEncoder(w *BitsWriter) *GammaEncoder
func (*GammaEncoder) Flush ¶
func (enc *GammaEncoder) Flush() error
func (*GammaEncoder) Write ¶
func (enc *GammaEncoder) Write(v uint)
type GolombDecoder ¶
type GolombDecoder struct {
// contains filtered or unexported fields
}
func NewGolombDeocder ¶
func NewGolombDeocder(b uint) *GolombDecoder
type GolombEncoder ¶
type GolombEncoder struct {
// contains filtered or unexported fields
}
func NewGolombEncoder ¶
func NewGolombEncoder(w *BitsWriter, b uint) *GolombEncoder
func (*GolombEncoder) Flush ¶
func (enc *GolombEncoder) Flush() error
func (*GolombEncoder) Write ¶
func (enc *GolombEncoder) Write(n uint) error
Click to show internal directories.
Click to hide internal directories.