bitlist

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 12, 2022 License: MPL-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 BitList

type BitList []byte

BitList is a bitlist

func NewBitlist

func NewBitlist(n uint64) BitList

func (*BitList) BitAt

func (b *BitList) BitAt(indx int) bool

BitAt returns the bit at a given position

func (BitList) Len

func (b BitList) Len() uint64

Len returns the length of the bitlist

func (BitList) SetBitAt

func (b BitList) SetBitAt(indx uint64, val bool)

SetBitAt sets the bit at a given position.

Jump to

Keyboard shortcuts

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