bitarray

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2022 License: Apache-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 BitArray

type BitArray []byte

Bitarray datastructure

func (BitArray) GetBit

func (b BitArray) GetBit(i int) (bool, error)

GetBit gets the ith bit. Returns true if bit is set; or an error if i is out of bound

func (BitArray) SetBit

func (b BitArray) SetBit(i int) error

SetBit sets the ith bit. Returns an error if i is out of bound

Jump to

Keyboard shortcuts

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