bitmap

package
v0.0.0-...-b1e3f6c Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2024 License: MIT Imports: 4 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 {
	Data []uint64
}

func NewBitmap

func NewBitmap() *Bitmap

func ToBitmap

func ToBitmap(data string) *Bitmap

func (*Bitmap) And

func (b *Bitmap) And(b2 *Bitmap) *Bitmap

func (*Bitmap) ClearBit

func (b *Bitmap) ClearBit(index int)

func (*Bitmap) ClearBits

func (b *Bitmap) ClearBits(index ...int)

func (*Bitmap) Not

func (b *Bitmap) Not() *Bitmap

func (*Bitmap) Or

func (b *Bitmap) Or(b2 *Bitmap) *Bitmap

func (*Bitmap) SetBit

func (b *Bitmap) SetBit(index int)

func (*Bitmap) SetBits

func (b *Bitmap) SetBits(index ...int)

func (*Bitmap) String

func (b *Bitmap) String() string

func (*Bitmap) TargetIds

func (b *Bitmap) TargetIds() []int

func (*Bitmap) Traverse

func (b *Bitmap) Traverse(callback func(index int))

func (*Bitmap) Xor

func (b *Bitmap) Xor(b2 *Bitmap) *Bitmap

Jump to

Keyboard shortcuts

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