convert

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: May 25, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BytesToInt

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

byte数组转int

func BytesToInt32

func BytesToInt32(buf []byte) int32

byte数组转int32

func BytesToInt32s

func BytesToInt32s(arr []byte) []int32

func BytesToInt64

func BytesToInt64(buf []byte) int64

byte数组转int64

func BytesToStr

func BytesToStr(b []byte) string

bytes to string safe

func Int64ArrToStr

func Int64ArrToStr(arr []int64) (arrayStr string)

func Int64ToBytes

func Int64ToBytes(i int64) []byte

int64转byte数组

func IntToBytes

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

整形转换成字节

func StrToBytes

func StrToBytes(s string) []byte

string safe to bytes

func StrToInt64Arr

func StrToInt64Arr(arrayStr string) (arr []int64)

Types

This section is empty.

Jump to

Keyboard shortcuts

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