bits

package
v0.0.0-...-9c9a4a3 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bits

type Bits struct {
	// contains filtered or unexported fields
}

func New

func New(size int) *Bits

func NewFromString

func NewFromString(s string) *Bits

func (*Bits) Clear

func (b *Bits) Clear(pos int)

func (*Bits) Get

func (b *Bits) Get(pos int) int

func (*Bits) OnesCount

func (b *Bits) OnesCount() int

func (*Bits) Reset

func (b *Bits) Reset()

func (*Bits) Set

func (b *Bits) Set(pos int)

func (*Bits) Size

func (b *Bits) Size() int

func (*Bits) String

func (b *Bits) String() string

func (*Bits) Toggle

func (b *Bits) Toggle(pos int) int

Jump to

Keyboard shortcuts

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