golomb

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reader

type Reader struct {
	// contains filtered or unexported fields
}

func NewReader

func NewReader(b []byte) *Reader

func (*Reader) End

func (g *Reader) End() bool

func (*Reader) ReadBit

func (g *Reader) ReadBit() (b byte, err error)

func (*Reader) ReadBits

func (g *Reader) ReadBits(n byte) (res uint, err error)

func (*Reader) ReadByte

func (g *Reader) ReadByte() (byte, error)

func (*Reader) ReadSEGolomb

func (g *Reader) ReadSEGolomb() (res int, err error)

func (*Reader) ReadUEGolomb

func (g *Reader) ReadUEGolomb() (res uint, err error)

type Writer

type Writer struct {
	// contains filtered or unexported fields
}

func NewWriter

func NewWriter() *Writer

func (*Writer) Bytes

func (g *Writer) Bytes() []byte

func (*Writer) WriteBit

func (g *Writer) WriteBit(b byte)

func (*Writer) WriteBits

func (g *Writer) WriteBits(b, n byte)

func (*Writer) WriteByte

func (g *Writer) WriteByte(b byte)

func (*Writer) WriteSEGolomb

func (g *Writer) WriteSEGolomb(b int8)

func (*Writer) WriteUEGolomb

func (g *Writer) WriteUEGolomb(b byte)

Jump to

Keyboard shortcuts

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