bitmap

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2025 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MaxIndex = uint64(1 << 34)
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Bitmap

type Bitmap struct {
	// contains filtered or unexported fields
}

func New

func New(opts ...Option) *Bitmap

func (*Bitmap) CopyTo

func (b *Bitmap) CopyTo(dst *Bitmap)

func (*Bitmap) Del

func (b *Bitmap) Del(index uint64)

func (*Bitmap) Has

func (b *Bitmap) Has(index uint64) bool

func (*Bitmap) MarshalBinary added in v1.6.0

func (b *Bitmap) MarshalBinary() ([]byte, error)

func (*Bitmap) Set

func (b *Bitmap) Set(index uint64)

func (*Bitmap) UnmarshalBinary added in v1.6.0

func (b *Bitmap) UnmarshalBinary(in []byte) error

type Option

type Option func(*Bitmap)

func OptDisableLock added in v1.6.0

func OptDisableLock() Option

func OptMaxIndex added in v1.6.0

func OptMaxIndex(index uint64) Option

Jump to

Keyboard shortcuts

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