bitbuffer

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BitBuffer

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

BitBuffer reads buffer by the bit.

func (*BitBuffer) ReadUint8

func (b *BitBuffer) ReadUint8(length uint32) (uint8, error)

ReadUint8 reads up to 8 bits and returns them as uint8.

func (*BitBuffer) ReadUint16

func (b *BitBuffer) ReadUint16(length uint32) (uint16, error)

ReadUint16 reads up to 16 bits and returns them as uint16.

func (*BitBuffer) ReadUint32

func (b *BitBuffer) ReadUint32(length uint32) (uint32, error)

ReadUint32 reads up to 32 bits and returns them as uint32.

func (*BitBuffer) ReadUint64

func (b *BitBuffer) ReadUint64(length uint32) (uint64, error)

ReadUint64 reads up to 64 bits and returns them as uint64.

func (*BitBuffer) Set

func (b *BitBuffer) Set(src []byte)

Set set the data in the buffer.

func (*BitBuffer) Skip

func (b *BitBuffer) Skip(length uint32) error

Skip advances the bit position without reading.

Jump to

Keyboard shortcuts

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