bitmap

package
v0.0.0-...-a2d2855 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 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 BitMap

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

func NewBitMap

func NewBitMap(cap int) (BitMap, error)

NewBitsMap create a new BitsMap

func (*BitMap) BitsLen

func (b *BitMap) BitsLen() int

func (*BitMap) Cap

func (b *BitMap) Cap() int

func (*BitMap) Count

func (b *BitMap) Count() int

func (*BitMap) Has

func (b *BitMap) Has(num int) bool

Has determine whether the specified position is set

func (*BitMap) Set

func (b *BitMap) Set(num int)

Set set the specified position If the position has been set or exceeds the maximum number of bits, set is a no-op.

Jump to

Keyboard shortcuts

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