bits

package
v0.4.17 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mask

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

Mask is an unbounded bit-mask

func (*Mask) IsSet

func (m *Mask) IsSet(num int) bool

IsSet returns true if the requested bit is set and false otherwise.

func (*Mask) Set

func (m *Mask) Set(num int)

Set sets a bit in the bit mask

func (*Mask) Unset

func (m *Mask) Unset(num int)

Unset clears a bit in the bit mask

Jump to

Keyboard shortcuts

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