Documentation ¶ Index ¶ type BitMap func FromBytes(bytes []byte) *BitMap func New() *BitMap func (b *BitMap) BitSize() int func (b *BitMap) ForEachBit(begin int64, end int64, cb Callback) func (b *BitMap) ForEachByte(begin int, end int, cb Callback) func (b *BitMap) GetBit(offset int64) byte func (b *BitMap) SetBit(offset int64, val byte) func (b *BitMap) ToBytes() []byte type Callback 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 Source Files ¶ View all Source files bitmap.go Click to show internal directories. Click to hide internal directories.