Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

3 Commits

Repository files navigation

bitmap

import "github.com/andy2046/bitmap"

Package bitmap implements Bitmap in Go.

bitmap.go

constMaxBitmapSizeuint64=0x01<<40

MaxBitmapSize is the maximum bitmap size (in bits).

typeBitmapstruct {
// contains filtered or unexported fields
}

Bitmap represents a bitmap.

funcNew(sizeuint64) *Bitmap

New creates a new Bitmap.

func (*Bitmap) GetBit

func (b*Bitmap) GetBit(offsetuint64) bool

GetBit returns the value of bit at offset.

func (*Bitmap) SetBit

func (b*Bitmap) SetBit(offsetuint64, vbool) bool

SetBit sets bit at offset to value v.

func (*Bitmap) Size

func (b*Bitmap) Size() uint64

Size returns the bitmap size (in bits).

About

bitmap implementation in Go

Topics

Resources

Stars

4 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages