bits

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2021 License: Apache-2.0 Imports: 0 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clear added in v0.1.4

func Clear(b, flag uint64) uint64

Clear returns `flag` with the given `mask` removed.

func Has added in v0.1.4

func Has(b, flag uint64) bool

Has returns TRUE if `flag` has the given `mask` present.

func Set added in v0.1.4

func Set(flag, mask uint64) uint64

Set returns `flag` with the given `mask` added.

func Toggle added in v0.1.4

func Toggle(b, flag uint64) uint64

Toggle returns `flag` with the state of `mask` inverted. If it was present, its removed, if it was not present its added.

Types

This section is empty.

Jump to

Keyboard shortcuts

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