import "github.com/andy2046/bitmap"
Package bitmap implements Bitmap in Go.
const MaxBitmapSize uint64 = 0x01 << 40MaxBitmapSize is the maximum bitmap size (in bits).
type Bitmap struct {
// contains filtered or unexported fields
}Bitmap represents a bitmap.
func New(size uint64) *BitmapNew creates a new Bitmap.
func (b *Bitmap) GetBit(offset uint64) boolGetBit returns the value of bit at offset.
func (b *Bitmap) SetBit(offset uint64, v bool) boolSetBit sets bit at offset to value v.
func (b *Bitmap) Size() uint64Size returns the bitmap size (in bits).