bitset

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2021 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Has

func Has(b Bits, flag uint) bool

Has will return true if the bit is set, false if not.

Types

type Bits

type Bits uint32

Bits represents an 8 bit bitset.

func Clear

func Clear(b Bits, flag uint) Bits

Clear clears the bit for the specific flag.

func Set

func Set(b Bits, flag uint) Bits

Set sets the bit for the specific flag on the given mask and returns the new mask.

func Toggle

func Toggle(b Bits, flag uint) Bits

Toggle toggles the bit for the credType.

Jump to

Keyboard shortcuts

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