bitwise

package
v3.0.0-...-a89b480 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2023 License: GPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BinaryWriter

type BinaryWriter interface {
	BitWriter
	_gc.Writer
	_gc.ByteWriter
	Data() []byte
}

type BitWriter

type BitWriter interface {
	WriteBit(_ba int) error
	WriteBits(_ega uint64, _ecf int) (_fgd int, _dgg error)
	FinishByte()
	SkipBits(_be int) error
}

type BufferedWriter

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

func BufferedMSB

func BufferedMSB() *BufferedWriter

func (*BufferedWriter) Data

func (_c *BufferedWriter) Data() []byte

func (*BufferedWriter) FinishByte

func (_gd *BufferedWriter) FinishByte()

func (*BufferedWriter) Len

func (_fg *BufferedWriter) Len() int

func (*BufferedWriter) Reset

func (_eb *BufferedWriter) Reset()

func (*BufferedWriter) ResetBitIndex

func (_bbg *BufferedWriter) ResetBitIndex()

func (*BufferedWriter) SkipBits

func (_bg *BufferedWriter) SkipBits(skip int) error

func (*BufferedWriter) Write

func (_ee *BufferedWriter) Write(d []byte) (int, error)

func (*BufferedWriter) WriteBit

func (_cb *BufferedWriter) WriteBit(bit int) error

func (*BufferedWriter) WriteBits

func (_bc *BufferedWriter) WriteBits(bits uint64, number int) (_eg int, _fe error)

func (*BufferedWriter) WriteByte

func (_ef *BufferedWriter) WriteByte(bt byte) error

type Reader

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

func NewReader

func NewReader(data []byte) *Reader

func (*Reader) AbsoluteLength

func (_baf *Reader) AbsoluteLength() uint64

func (*Reader) AbsolutePosition

func (_efd *Reader) AbsolutePosition() int64

func (*Reader) Align

func (_cdc *Reader) Align() (_gba byte)

func (*Reader) BitPosition

func (_bac *Reader) BitPosition() int

func (*Reader) ConsumeRemainingBits

func (_ebff *Reader) ConsumeRemainingBits() (uint64, error)

func (*Reader) Length

func (_ffg *Reader) Length() uint64

func (*Reader) Mark

func (_deg *Reader) Mark()

func (*Reader) NewPartialReader

func (_gdg *Reader) NewPartialReader(offset, length int, relative bool) (*Reader, error)

func (*Reader) Read

func (_cded *Reader) Read(p []byte) (_feb int, _ffc error)

func (*Reader) ReadBit

func (_eca *Reader) ReadBit() (_fgf int, _dcg error)

func (*Reader) ReadBits

func (_fac *Reader) ReadBits(n byte) (_aag uint64, _gfd error)

func (*Reader) ReadBool

func (_dga *Reader) ReadBool() (bool, error)

func (*Reader) ReadByte

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

func (*Reader) ReadUint32

func (_dd *Reader) ReadUint32() (uint32, error)

func (*Reader) RelativePosition

func (_ddc *Reader) RelativePosition() int64

func (*Reader) Reset

func (_gcae *Reader) Reset()

func (*Reader) Seek

func (_gdf *Reader) Seek(offset int64, whence int) (int64, error)

type StreamReader

type StreamReader interface {
	_gc.Reader
	_gc.ByteReader
	_gc.Seeker
	Align() byte
	BitPosition() int
	Mark()
	Length() uint64
	ReadBit() (int, error)
	ReadBits(_cbe byte) (uint64, error)
	ReadBool() (bool, error)
	ReadUint32() (uint32, error)
	Reset()
	AbsolutePosition() int64
}

type Writer

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

func NewWriter

func NewWriter(data []byte) *Writer

func NewWriterMSB

func NewWriterMSB(data []byte) *Writer

func (*Writer) Data

func (_cg *Writer) Data() []byte

func (*Writer) FinishByte

func (_dee *Writer) FinishByte()

func (*Writer) ResetBit

func (_dca *Writer) ResetBit()

func (*Writer) SkipBits

func (_bbf *Writer) SkipBits(skip int) error

func (*Writer) UseMSB

func (_fbgc *Writer) UseMSB() bool

func (*Writer) Write

func (_adf *Writer) Write(p []byte) (int, error)

func (*Writer) WriteBit

func (_bbe *Writer) WriteBit(bit int) error

func (*Writer) WriteBits

func (_ggg *Writer) WriteBits(bits uint64, number int) (_faf int, _dbe error)

func (*Writer) WriteByte

func (_efed *Writer) WriteByte(c byte) error

Jump to

Keyboard shortcuts

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