bitmap

package
v0.3.9-2 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2022 License: Apache-2.0 Imports: 0 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IntArray2Uint

func IntArray2Uint(nums []int) uint32

IntArray2Uint transfer int array nums to bitmap number

func IntArrayToUint64

func IntArrayToUint64(nums []int) uint64

func IntSliceEqual

func IntSliceEqual(a, b []int) bool

Determine if int slice a euqals b

func Uint2IntArray

func Uint2IntArray(n uint32) []int

Uint2IntArray transfer bitmap displayed as n to int array

func Uint64ToIntArray

func Uint64ToIntArray(n uint64) []int

Types

type BitMap

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

func NewBitMap

func NewBitMap(size int64) *BitMap

func (*BitMap) Clean

func (bm *BitMap) Clean(idx int64)

func (*BitMap) Has

func (bm *BitMap) Has(idx int64) bool

func (*BitMap) Set

func (bm *BitMap) Set(idx int64)

Jump to

Keyboard shortcuts

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