labs

package
v1.4.9 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindImplements

func FindImplements(u reflect.Type) (list []reflect.Type)

Types

type Bitmap

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

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

func NewBitmap

func NewBitmap(maxnum uint64) *Bitmap

NewBitmap 创建工厂函数

func (*Bitmap) Count

func (this *Bitmap) Count() uint64

Count 已填入的数字个数

func (*Bitmap) GetData

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

GetData 获取填入的数字切片

func (*Bitmap) IsEmpty

func (this *Bitmap) IsEmpty() bool

IsEmpty 是否空位图

func (*Bitmap) IsFully

func (this *Bitmap) IsFully() bool

IsFully 是否已填满

func (*Bitmap) Reset

func (this *Bitmap) Reset(num uint64)

Reset 清除填入的数字

func (*Bitmap) Set

func (this *Bitmap) Set(num uint64)

Set 填入数字

func (*Bitmap) Size

func (this *Bitmap) Size() uint64

Size 位图的容量

func (*Bitmap) String

func (this *Bitmap) String() string

func (*Bitmap) Test

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

Test 数字是否在位图中

Jump to

Keyboard shortcuts

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