bitmask

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2020 License: Apache-2.0, BSD-2-Clause Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BitMask

type BitMask byte

func (BitMask) ClearFlag

func (bitmask BitMask) ClearFlag(pos uint) BitMask

ClearFlag clears the flag at the given position.

func (BitMask) HasFlag

func (bitmask BitMask) HasFlag(pos uint) bool

HasFlag checks whether the flag at the given position is set.

func (BitMask) ModifyFlag

func (bitmask BitMask) ModifyFlag(pos uint, state bool) BitMask

ModifyFlag sets or clears the flag at the given position, given the supplied state bool.

func (BitMask) SetFlag

func (bitmask BitMask) SetFlag(pos uint) BitMask

SetFlag sets the flag at the given position.

Jump to

Keyboard shortcuts

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