bitmask

package
v0.0.0-...-25ef478 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2023 License: Apache-2.0, BSD-2-Clause Imports: 0 Imported by: 12

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) ClearBit

func (bitmask BitMask) ClearBit(pos uint) BitMask

ClearBit clears the bit at the given position.

func (BitMask) ClearBits

func (bitmask BitMask) ClearBits(bits BitMask) BitMask

ClearBits clears the bits in the given bitmask.

func (BitMask) HasBit

func (bitmask BitMask) HasBit(pos uint) bool

HasBit checks whether the bit at the given position is set.

func (BitMask) HasBits

func (bitmask BitMask) HasBits(bits BitMask) bool

HasBits checks whether the bits in the given bitmask are set.

func (BitMask) ModifyBit

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

ModifyBit sets or clears the bit at the given position, given the supplied state bool.

func (BitMask) SetBit

func (bitmask BitMask) SetBit(pos uint) BitMask

SetBit sets the bit at the given position.

func (BitMask) SetBits

func (bitmask BitMask) SetBits(bits BitMask) BitMask

SetBits sets the bits in the given bitmask.

Jump to

Keyboard shortcuts

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