bit

package
v0.0.0-...-5194f70 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2018 License: BSD-3-Clause Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clear

func Clear(val uint64, pos uint64) uint64

Clears the bit at pos in n.

func Has

func Has(val uint64, pos uint64) bool

Has checks if a bit is set

func Set

func Set(val uint64, pos uint64) uint64

Sets the bit at pos in the integer n.

func SetFirstN

func SetFirstN(val uint64, n uint64) uint64

func SetLastN

func SetLastN(val uint64, n uint64, size uint64) uint64

Types

This section is empty.

Jump to

Keyboard shortcuts

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