bitset

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2024 License: Apache-2.0 Imports: 0 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 {
	Size uint32
	Bits []byte
}

func New

func New(numBits uint32) *BitSet

func (*BitSet) Set

func (bs *BitSet) Set(bit uint32)

---------------------------------------------------------- set 1 to position [bit]

func (*BitSet) Test

func (bs *BitSet) Test(bit uint32) bool

---------------------------------------------------------- test wheather a bit is set

func (*BitSet) Unset

func (bs *BitSet) Unset(bit uint32)

---------------------------------------------------------- set 0 to position [bit]

Jump to

Keyboard shortcuts

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