bitmap

package
v1.2.9 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2023 License: GPL-3.0 Imports: 0 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 []byte

func FromBytes

func FromBytes(bytes []byte) *BitMap

func New

func New() *BitMap

func (*BitMap) BitSize

func (b *BitMap) BitSize() int

func (*BitMap) ForEachBit

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

func (*BitMap) ForEachByte

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

func (*BitMap) GetBit

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

func (*BitMap) SetBit

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

func (*BitMap) ToBytes

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

type Callback

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