bitstring

package
v1.49.37 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2026 License: MIT Imports: 1 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Full = ^Segment(0)
View Source
var One = Segment(1)
View Source
var Zero = Segment(0)

Functions

func GetAddress

func GetAddress(idx uint) uint

func GetOffset

func GetOffset(idx uint) uint

Types

type BitString

type BitString struct {
	Length   int
	Segments uint
	// contains filtered or unexported fields
}

func New

func New(length int) *BitString

func (*BitString) And

func (b *BitString) And(b2 *BitString) *BitString

func (*BitString) ClearBit

func (b *BitString) ClearBit(idx uint) *BitString

func (*BitString) Equal

func (b *BitString) Equal(b2 *BitString) bool

func (*BitString) GetBit

func (b *BitString) GetBit(idx uint) bool

func (*BitString) GetSegment

func (b *BitString) GetSegment(idx uint) Segment

func (*BitString) Or

func (b *BitString) Or(b2 *BitString) *BitString

func (*BitString) SetBit

func (b *BitString) SetBit(idx uint) *BitString

type Segment

type Segment int64

Jump to

Keyboard shortcuts

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