bitmap

package
v0.2.7 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidBuffer = errors.New("invalid buffer length")

Functions

This section is empty.

Types

type Bitmap

type Bitmap struct {
	Bitmap *xroar.Bitmap
}

func And

func And(a, b Bitmap) Bitmap

func AndNot

func AndNot(a, b Bitmap) Bitmap

func FastAnd

func FastAnd(bitmaps ...Bitmap) Bitmap

func FastOr

func FastOr(bitmaps ...Bitmap) Bitmap

func New

func New() Bitmap

func NewFromArray

func NewFromArray(src []uint64) Bitmap

func NewFromBytes

func NewFromBytes(src []byte) Bitmap

func Or

func Or(a, b Bitmap) Bitmap

func (*Bitmap) And

func (b *Bitmap) And(a Bitmap) Bitmap

func (*Bitmap) AndNot

func (b *Bitmap) AndNot(a Bitmap) Bitmap

func (Bitmap) Bytes

func (b Bitmap) Bytes() []byte

func (Bitmap) Clone

func (b Bitmap) Clone() Bitmap

func (*Bitmap) CloneFrom

func (b *Bitmap) CloneFrom(a Bitmap)

func (*Bitmap) CloneFromBytes

func (b *Bitmap) CloneFromBytes(src []byte)

func (Bitmap) Contains

func (b Bitmap) Contains(x uint64) bool

func (Bitmap) Count

func (b Bitmap) Count() int

func (*Bitmap) Free

func (b *Bitmap) Free()

func (Bitmap) IsValid

func (b Bitmap) IsValid() bool

func (Bitmap) MarshalBinary

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

func (Bitmap) MarshalText

func (b Bitmap) MarshalText() ([]byte, error)

func (*Bitmap) Or

func (b *Bitmap) Or(a Bitmap) Bitmap

func (Bitmap) Remove

func (b Bitmap) Remove(x uint64) bool

func (Bitmap) Set

func (b Bitmap) Set(x uint64) bool

func (Bitmap) Size

func (b Bitmap) Size() int

func (*Bitmap) UnmarshalBinary

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

func (*Bitmap) UnmarshalText

func (b *Bitmap) UnmarshalText(src []byte) error

Jump to

Keyboard shortcuts

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