bitmap

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 27, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bitmap

type Bitmap struct {
	sync.Mutex

	Rb *roaring64.Bitmap
}

Bitmap is a go-routine safe wrapping of the roarding bitmap

func New

func New() *Bitmap

func (*Bitmap) CheckedAdd

func (b *Bitmap) CheckedAdd(uid uint64) bool

func (*Bitmap) CheckedRemove

func (b *Bitmap) CheckedRemove(uid uint64) bool

func (*Bitmap) IsEmpty

func (b *Bitmap) IsEmpty() bool

Jump to

Keyboard shortcuts

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