bitmap

package
v1.1.10 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBitmap

func NewBitmap(maxNum uint64) *bitmap

@desc NewBitmap @auth liuguoqiang 2020-12-27 @param @return

Types

type BitMap added in v1.1.9

type BitMap []byte

func FromBytes added in v1.1.9

func FromBytes(bytes []byte) *BitMap

func New added in v1.1.9

func New() *BitMap

func (*BitMap) BitSize added in v1.1.9

func (b *BitMap) BitSize() int

func (*BitMap) ForEachBit added in v1.1.9

func (b *BitMap) ForEachBit(begin int64, end int64, cb Callback)

func (*BitMap) ForEachByte added in v1.1.9

func (b *BitMap) ForEachByte(begin int, end int, cb Callback)

func (*BitMap) GetBit added in v1.1.9

func (b *BitMap) GetBit(offset int64) byte

func (*BitMap) SetBit added in v1.1.9

func (b *BitMap) SetBit(offset int64, val byte)

func (*BitMap) ToBytes added in v1.1.9

func (b *BitMap) ToBytes() []byte

type Callback added in v1.1.9

type Callback func(offset int64, val byte) bool

Jump to

Keyboard shortcuts

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