Documentation ¶
Index ¶
- func Bin2GBKString(b []byte) (string, error)
- func Bin2HexString(binData []byte) string
- func Bin2String(b []byte) string
- func Bin2Uint16(binData []byte) uint16
- func Bin2Uint32_BigEndian(binData []byte) uint32
- func Bin2Uint32_LittleEndian(binData []byte) uint32
- func Bin2Uint64(binData []byte) uint64
- func ByteSliceEqual(a, b []byte) bool
- func GBKString2Bin(s string) ([]byte, error)
- func HexString2Bin(strData string) []byte
- func IntToString(n64 int64, radix int) string
- func String2Bin(s string) []byte
- func StringPadLeft(src string, paddingChar string, expc int) string
- func StringPadRight(src string, paddingChar string, expc int) string
- func StringTruncRigth(s string, l int, pad byte) string
- func Uint16ToBin(v uint16) []byte
- func Uint32ToBin_BigEndian(v uint32) []byte
- func Uint32ToBin_LittleEndian(v uint32) []byte
- func Uint64ToBin(v uint64) []byte
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Bin2GBKString ¶
func Bin2Uint32_BigEndian ¶
Bin2Uint32_BigEndian 字节数组转Uint32 大端
func Bin2Uint32_LittleEndian ¶
Bin2Uint32_LittleEndian 字节数组转Uint32 小端
func GBKString2Bin ¶
func StringPadLeft ¶
StringPadLeft 左补齐
func StringPadRight ¶
StringPadRight 右补齐
func Uint32ToBin_BigEndian ¶
Uint32ToBin_BigEndian Uint32转字节数组 大端
func Uint32ToBin_LittleEndian ¶
Uint32ToBin_LittleEndian Uint32转字节数组 小端
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.