util

package
v0.0.0-...-052ef2a Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClearBit16

func ClearBit16(n uint16, pos uint16) uint16

Clears the bit at pos in n.

func ClearBit32

func ClearBit32(n uint32, pos uint32) uint32

Clears the bit at pos in n.

func ClearBit64

func ClearBit64(n uint64, pos uint64) uint64

Clears the bit at pos in n.

func HasBit16

func HasBit16(n uint16, pos uint16) bool

func HasBit32

func HasBit32(n uint32, pos uint32) bool

func HasBit64

func HasBit64(n uint64, pos uint64) bool

func PanicToError

func PanicToError(e any) (err error)

func SetBit16

func SetBit16(n uint16, pos uint16) uint16

Sets the bit at pos in the integer n.

func SetBit32

func SetBit32(n uint32, pos uint32) uint32

Sets the bit at pos in the integer n.

func SetBit64

func SetBit64(n uint64, pos uint64) uint64

Sets the bit at pos in the integer n.

Types

This section is empty.

Jump to

Keyboard shortcuts

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