binary

package
v0.0.0-...-1e877d2 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ByteList2Int

func ByteList2Int(list []uint8) int

ByteList2Int 字节列表转整型,list需要满足遍历低位->高位

func CheckBit

func CheckBit(n int, pos int) bool

CheckBit 判断指定二进制位是否为1

func IntToByteList

func IntToByteList(n int, max int) []uint8

IntToByteList 整型转字节列表,list遍历低位->高位

func SetBit

func SetBit(n int, pos int) int

SetBit 将指定的二进制位设置为1

Types

This section is empty.

Jump to

Keyboard shortcuts

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