bit

package
v0.0.0-...-c1e5b24 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClearBit

func ClearBit(b byte, index int) byte

ClearBit 将第index位设为0

func GetBit

func GetBit(b uint8, index int) int

GetBit 获取取第index位

func ReverseBit

func ReverseBit(b byte, index int) byte

ReverseBit 将第index位取反

func SetBit

func SetBit(b *uint8, index int)

SetBit 将第index位设为1

Types

This section is empty.

Jump to

Keyboard shortcuts

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