bits

package
v0.0.0-...-b128a35 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 19, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GolombBitReader

type GolombBitReader struct {
	R io.Reader
	// contains filtered or unexported fields
}

func (*GolombBitReader) ReadBit

func (self *GolombBitReader) ReadBit() (res uint, err error)

func (*GolombBitReader) ReadBits

func (self *GolombBitReader) ReadBits(n int) (res uint, err error)

func (*GolombBitReader) ReadExponentialGolombCode

func (self *GolombBitReader) ReadExponentialGolombCode() (res uint, err error)

func (*GolombBitReader) ReadSE

func (self *GolombBitReader) ReadSE() (res uint, err error)

type Reader

type Reader struct {
	R io.Reader
	// contains filtered or unexported fields
}

func (*Reader) Read

func (self *Reader) Read(p []byte) (n int, err error)

func (*Reader) ReadBits

func (self *Reader) ReadBits(n int) (bits uint, err error)

func (*Reader) ReadBits64

func (self *Reader) ReadBits64(n int) (bits uint64, err error)

type Writer

type Writer struct {
	W io.Writer
	// contains filtered or unexported fields
}

func (*Writer) FlushBits

func (self *Writer) FlushBits() (err error)

func (*Writer) Write

func (self *Writer) Write(p []byte) (n int, err error)

func (*Writer) WriteBits

func (self *Writer) WriteBits(bits uint, n int) (err error)

func (*Writer) WriteBits64

func (self *Writer) WriteBits64(bits uint64, n int) (err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL