bitmap

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2024 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 New

func New(size uint64) *Bitmap

func (*Bitmap) Clear

func (b *Bitmap) Clear()

func (*Bitmap) Data

func (b *Bitmap) Data() []byte

func (*Bitmap) Expend

func (b *Bitmap) Expend(size uint64) uint64

func (*Bitmap) IsSet

func (b *Bitmap) IsSet(num uint64) bool

func (*Bitmap) Resize

func (b *Bitmap) Resize(size uint64)

func (*Bitmap) Set

func (b *Bitmap) Set(num uint64) bool

func (*Bitmap) Size

func (b *Bitmap) Size() uint64

func (*Bitmap) SizeExp

func (b *Bitmap) SizeExp() (exponent uint64)

func (*Bitmap) String

func (b *Bitmap) String()

todo :string,输出bitmap

func (*Bitmap) Unset

func (b *Bitmap) Unset(pos uint64) bool

Jump to

Keyboard shortcuts

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