bitutil

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 11, 2025 License: MIT Imports: 0 Imported by: 0

README

bitutil 位处理工具

位检查

  • bitutil.HasBitAt(anyNumber, pos) 检查无符号整数中从右数第pos位是否为1(pos 0-based)

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HasBitAt

func HasBitAt[T unsignedBitCheckable](n T, pos uint) bool

HasBitAt 检查 byte 中从右数第pos位是否为1(pos 0-based) pos 从0开始计数,0表示最后一位

Types

This section is empty.

Jump to

Keyboard shortcuts

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