bitflags

package
v0.0.0-...-3192b2a Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func U32To16

func U32To16(val uint32) (h, l uint16)

func U64To32

func U64To32(val uint64) (h, l uint32)

Types

type Flags

type Flags[T constraints.Unsigned] struct {
	// contains filtered or unexported fields
}

func Some

func Some[T constraints.Unsigned](f T) Flags[T]

func (*Flags[T]) Clear

func (b *Flags[T]) Clear(f T)

func (*Flags[T]) Has

func (b *Flags[T]) Has(f T) bool

func (*Flags[T]) HasAll

func (b *Flags[T]) HasAll(flags ...T) bool

func (*Flags[T]) Raw

func (b *Flags[T]) Raw() T

func (*Flags[T]) Set

func (b *Flags[T]) Set(isSet bool, f T)

func (*Flags[T]) Sets

func (b *Flags[T]) Sets(flags ...T)

Jump to

Keyboard shortcuts

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