bitset

package
v0.0.0-...-1335e20 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBit

func GetBit[T int | uint8 | uint16](v T, pos int) bool

Types

type BitSet

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

func NewBitSet

func NewBitSet(length int) *BitSet

func (*BitSet) ByteAt

func (bs *BitSet) ByteAt(bytePos int) byte

func (*BitSet) Clone

func (bs *BitSet) Clone() *BitSet

func (*BitSet) Debug

func (bs *BitSet) Debug()

func (*BitSet) GetValue

func (bs *BitSet) GetValue(pos int) bool

func (*BitSet) Length

func (bs *BitSet) Length() int

func (*BitSet) Position

func (bs *BitSet) Position() int

func (*BitSet) SetBool

func (bs *BitSet) SetBool(v bool)

func (*BitSet) SetBools

func (bs *BitSet) SetBools(v ...bool)

func (*BitSet) SetByte

func (bs *BitSet) SetByte(v byte)

func (*BitSet) SetBytes

func (bs *BitSet) SetBytes(bytes []byte)

func (*BitSet) SetInt

func (bs *BitSet) SetInt(v int, length int)

func (*BitSet) Values

func (bs *BitSet) Values() []byte

Values returns byte array of bitset for debug

Jump to

Keyboard shortcuts

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