bitmask

package
v0.0.0-...-c8a5df3 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2018 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package bitmask implements simple functions for handling bitmasks/flags.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clear

func Clear(m *uint32, flag uint32)

Clear clears the flag in the mask.

func IsSet

func IsSet(m, flag uint32) bool

IsSet returns true if the given flag is set.

func Set

func Set(m *uint32, flag uint32)

Set sets the flag in the mask.

func Toggle

func Toggle(m *uint32, flag uint32)

Toggle toggles the flag in the mask.

Types

This section is empty.

Jump to

Keyboard shortcuts

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