bitstring

package
v1.40.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2026 License: MIT Imports: 1 Imported by: 0

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