util

package
v0.6.7 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2023 License: Apache-2.0 Imports: 3 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 数字是否在位图中

type RollingWaitGroup added in v0.6.1

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

RollingWaitGroup 滑动窗口n的WaitGroup

func NewRollingWaitGroup added in v0.6.1

func NewRollingWaitGroup(n int) *RollingWaitGroup

NewRollingWaitGroup initialization RollingWaitGroup struct

func (*RollingWaitGroup) Add added in v0.6.1

func (g *RollingWaitGroup) Add(delta int)

func (*RollingWaitGroup) Done added in v0.6.1

func (g *RollingWaitGroup) Done()

func (*RollingWaitGroup) Wait added in v0.6.1

func (g *RollingWaitGroup) Wait()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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