bitset

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bitset

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

func Clone

func Clone(from *Bitset) *Bitset

func New

func New(v ...bool) *Bitset

func (*Bitset) Append

func (b *Bitset) Append(other *Bitset) error

func (*Bitset) AppendBools

func (b *Bitset) AppendBools(bits ...bool)

func (*Bitset) AppendByte

func (b *Bitset) AppendByte(value byte, numBits int) error

func (*Bitset) AppendBytes

func (b *Bitset) AppendBytes(data []byte) error

func (*Bitset) AppendNumBools

func (b *Bitset) AppendNumBools(num int, value bool)

func (*Bitset) AppendUint32

func (b *Bitset) AppendUint32(value uint32, numBits int) error

func (*Bitset) At

func (b *Bitset) At(index int) (bool, error)

func (*Bitset) ByteAt

func (b *Bitset) ByteAt(index int) (byte, error)

func (*Bitset) Len

func (b *Bitset) Len() int

func (*Bitset) Substr

func (b *Bitset) Substr(start int, end int) (*Bitset, error)

Jump to

Keyboard shortcuts

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