gbitmap

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2022 License: MIT 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

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

func NewBitMap

func NewBitMap(size int) *BitMap

func (*BitMap) Clear

func (b *BitMap) Clear(index int)

func (*BitMap) ClearAll

func (b *BitMap) ClearAll()

func (*BitMap) Init

func (b *BitMap) Init(size int)

func (*BitMap) Set

func (b *BitMap) Set(index int)

func (*BitMap) Test

func (b *BitMap) Test(index int) bool

type IBitMap

type IBitMap interface {
	Init(size int)
	Set(index int)       //设置位
	Test(index int) bool //位是否被设置
	Clear(index int)     //清楚位
	ClearAll()
}

Jump to

Keyboard shortcuts

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