Documentation
¶
Index ¶
- type Bitmap256
- func (v Bitmap256) Clear(pos uint8) Bitmap256
- func (v Bitmap256) Count() int
- func (v Bitmap256) CountLeadingOnes() int
- func (v Bitmap256) Get(pos uint8) bool
- func (v Bitmap256) Iterate(f func(i int))
- func (v Bitmap256) Or(b Bitmap256) Bitmap256
- func (v Bitmap256) Set(pos uint8) Bitmap256
- func (v Bitmap256) Subtract(b Bitmap256) Bitmap256
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bitmap256 ¶
type Bitmap256 [4]uint64
Bitmap256 is a bitmap of 256 elements.
func (Bitmap256) CountLeadingOnes ¶
CountLeadingOnes returns the count of consecutive 1s starting from the beginning.
func (Bitmap256) Or ¶
Or returns a new Bitmap256 that is the bitwise OR of the current bitmap and the given bitmap.
Click to show internal directories.
Click to hide internal directories.