bitset

package
v0.0.0-...-99d40e0 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2020 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package bitset implements a bit array for dense indexes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bitset

type Bitset []uint

Bitset is a bit array for dense indexes.

func NewBitset

func NewBitset(n int) Bitset

NewBitset constructs a Bitset.

func (Bitset) Clear

func (bs Bitset) Clear(i int)

Clear clears bit at index i.

func (Bitset) Reset

func (bs Bitset) Reset()

Reset clears the bitset.

func (Bitset) Set

func (bs Bitset) Set(i int)

Set sets the bit at index i.

func (Bitset) Test

func (bs Bitset) Test(i int) bool

Test tests bit at index i.

Jump to

Keyboard shortcuts

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