bytex

package
v1.2.58 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendZero

func AppendZero(str string, _len int, before bool) []byte

func BitStrToBytes

func BitStrToBytes(data string) []byte

func ByteArrayToInt

func ByteArrayToInt(bytes []byte) int

func ByteToBitStr

func ByteToBitStr(b byte) string

func BytesToBitStr

func BytesToBitStr(datas []byte) string

func BytesToInt

func BytesToInt(b []byte, isSymbol bool) (int, error)

isSymbol表示有无符号

func BytesToInt64

func BytesToInt64(buf []byte) int64

func BytesToIntLittleEndian

func BytesToIntLittleEndian(b []byte) (int, error)

func Int32ToBytes

func Int32ToBytes(i int32) []byte

func Int32ToBytesLe

func Int32ToBytesLe(i int32) []byte

func Int64ToBytes

func Int64ToBytes(i int64) []byte

func Int64ToBytesLe

func Int64ToBytesLe(i int64) []byte

func IntToByteArray2

func IntToByteArray2(i int) []byte

func IntToByteArray4

func IntToByteArray4(i int) []byte

func IntToBytes

func IntToBytes(n int, b byte) ([]byte, error)

整形转换成字节

func IntToBytesLe

func IntToBytesLe(n int, b byte) ([]byte, error)

func OneArrayToTwoArray

func OneArrayToTwoArray(bytes []byte, row int, column int) [][]byte

func PasstrafficBitStrToInt

func PasstrafficBitStrToInt(bitstr string) int

func PasstrafficIntToBit

func PasstrafficIntToBit(datas []byte) string

func ReverseBits

func ReverseBits(num uint32) uint32

func ReverseBytes

func ReverseBytes(bytes *[]byte)

func Substring

func Substring(str string, start int, end int) string

func Uint16ToBytes

func Uint16ToBytes(n uint16) [2]byte

Types

This section is empty.

Jump to

Keyboard shortcuts

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