util

package
v0.5.9 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2023 License: Apache-2.0 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 added in v0.2.0

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

Bitmap 首字母小写 只能调用 工厂函数 创建

func NewBitmap added in v0.2.0

func NewBitmap(maxnum uint64) *Bitmap

NewBitmap 创建工厂函数

func (*Bitmap) Count added in v0.2.0

func (this *Bitmap) Count() uint64

Count 已填入的数字个数

func (*Bitmap) GetData added in v0.2.0

func (this *Bitmap) GetData() []uint64

GetData 获取填入的数字切片

func (*Bitmap) IsEmpty added in v0.2.0

func (this *Bitmap) IsEmpty() bool

IsEmpty 是否空位图

func (*Bitmap) IsFully added in v0.2.0

func (this *Bitmap) IsFully() bool

IsFully 是否已填满

func (*Bitmap) Reset added in v0.2.0

func (this *Bitmap) Reset(num uint64)

Reset 清除填入的数字

func (*Bitmap) Set added in v0.2.0

func (this *Bitmap) Set(num uint64)

Set 填入数字

func (*Bitmap) Size added in v0.2.0

func (this *Bitmap) Size() uint64

Size 位图的容量

func (*Bitmap) String added in v0.2.0

func (this *Bitmap) String() string

func (*Bitmap) Test added in v0.2.0

func (this *Bitmap) Test(num uint64) bool

Test 数字是否在位图中

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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