bits

package
v1.9.1 Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: MIT Imports: 0 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 {
	EOF bool // if end of buffer raised during reading
	// contains filtered or unexported fields
}

func NewReader

func NewReader(b []byte) *Reader

func (*Reader) Left added in v1.8.5

func (r *Reader) Left() []byte

func (*Reader) ReadBit

func (r *Reader) ReadBit() byte

func (*Reader) ReadBits

func (r *Reader) ReadBits(n byte) (res uint32)

func (*Reader) ReadBits16

func (r *Reader) ReadBits16(n byte) (res uint16)

func (*Reader) ReadBits64

func (r *Reader) ReadBits64(n byte) (res uint64)

func (*Reader) ReadBits8

func (r *Reader) ReadBits8(n byte) (res uint8)

func (*Reader) ReadByte

func (r *Reader) ReadByte() byte

func (*Reader) ReadBytes

func (r *Reader) ReadBytes(n int) (b []byte)

func (*Reader) ReadSEGolomb

func (r *Reader) ReadSEGolomb() int32

ReadSEGolomb - ReadSignedExponentialGolomb

func (*Reader) ReadUEGolomb

func (r *Reader) ReadUEGolomb() uint32

ReadUEGolomb - ReadExponentialGolomb (unsigned)

func (*Reader) ReadUint16

func (r *Reader) ReadUint16() uint16

func (*Reader) ReadUint24

func (r *Reader) ReadUint24() uint32

func (*Reader) ReadUint32

func (r *Reader) ReadUint32() uint32

type Writer

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

func NewWriter

func NewWriter(buf []byte) *Writer

func (*Writer) Bytes

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

func (*Writer) Len

func (w *Writer) Len() int

func (*Writer) Reset

func (w *Writer) Reset()

func (*Writer) WriteAllBits

func (w *Writer) WriteAllBits(bit, n byte)

func (*Writer) WriteBit

func (w *Writer) WriteBit(b byte)

func (*Writer) WriteBits

func (w *Writer) WriteBits(v uint32, n byte)

func (*Writer) WriteBits16

func (w *Writer) WriteBits16(v uint16, n byte)

func (*Writer) WriteBits8

func (w *Writer) WriteBits8(v, n byte)

func (*Writer) WriteBool

func (w *Writer) WriteBool(b bool)

func (*Writer) WriteByte

func (w *Writer) WriteByte(b byte)

func (*Writer) WriteBytes

func (w *Writer) WriteBytes(bytes ...byte)

func (*Writer) WriteUint16

func (w *Writer) WriteUint16(v uint16)

Jump to

Keyboard shortcuts

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