binary

package
v0.0.0-...-d361f56 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2023 License: MPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bitstream

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

Bitstream allows to read individual bits from an array of bytes.

func NewBitstream

func NewBitstream(data []byte) *Bitstream

NewBitstream creates a Bitstream from an array of bytes.

func (*Bitstream) GetCountBitsLeft

func (bs *Bitstream) GetCountBitsLeft() uint

func (*Bitstream) GetData

func (bs *Bitstream) GetData() []byte

func (*Bitstream) GetDataAtCurrentOffset

func (bs *Bitstream) GetDataAtCurrentOffset() []byte

func (*Bitstream) GetDataAtEnd

func (bs *Bitstream) GetDataAtEnd() []byte

func (*Bitstream) GetSizeInBytes

func (bs *Bitstream) GetSizeInBytes() int

func (*Bitstream) IsNextBitSet

func (bs *Bitstream) IsNextBitSet() bool

func (*Bitstream) ReadBit

func (bs *Bitstream) ReadBit() (bool, error)

func (*Bitstream) ReadBits

func (bs *Bitstream) ReadBits(count uint) (uint32, error)

func (*Bitstream) Tell

func (bs *Bitstream) Tell() uint

Jump to

Keyboard shortcuts

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