Documentation ¶
Index ¶
- func BytesToFloat32(data []byte, order binary.ByteOrder) (float32, error)
- func BytesToFloat64(data []byte, order binary.ByteOrder) (float64, error)
- func BytesToInt16(data []byte, order binary.ByteOrder) (int16, error)
- func BytesToInt32(data []byte, order binary.ByteOrder) (int32, error)
- func BytesToInt64(data []byte, order binary.ByteOrder) (int64, error)
- func BytesToInt8(data []byte, order binary.ByteOrder) (int8, error)
- func BytesToUint16(data []byte, order binary.ByteOrder) (uint16, error)
- func BytesToUint32(data []byte, order binary.ByteOrder) (uint32, error)
- func BytesToUint64(data []byte, order binary.ByteOrder) (uint64, error)
- func BytesToUint8(data []byte, order binary.ByteOrder) (uint8, error)
- func BytesToUtf8String(data []byte, encoding string) (string, error)
- func DecodeBytesToString(typeName string, data []byte, order binary.ByteOrder, encoding string) (string, error)
- func DecodeValueFromBytes(data []byte, order binary.ByteOrder, value interface{}) error
- func EncodeStringToBytes(typeName string, data string, order binary.ByteOrder, encoding string) ([]byte, error)
- func EncodeValueToBytes(value interface{}, order binary.ByteOrder) ([]byte, error)
- func GbkToUtf8(s []byte) ([]byte, error)
- func StringToFloat32(data string) (float32, error)
- func StringToFloat64(data string) (float64, error)
- func StringToInt16(data string) (int16, error)
- func StringToInt32(data string) (int32, error)
- func StringToInt64(data string) (int64, error)
- func StringToInt8(data string) (int8, error)
- func StringToUint16(data string) (uint16, error)
- func StringToUint32(data string) (uint32, error)
- func StringToUint64(data string) (uint64, error)
- func StringToUint8(data string) (uint8, error)
- func Utf8StringToBytes(str string, encoding string) ([]byte, error)
- func Utf8ToGbk(s []byte) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeBytesToString ¶
func DecodeValueFromBytes ¶
func EncodeStringToBytes ¶
func EncodeValueToBytes ¶
func StringToFloat32 ¶
func StringToFloat64 ¶
func StringToInt16 ¶
func StringToInt32 ¶
func StringToInt64 ¶
func StringToInt8 ¶
func StringToUint16 ¶
func StringToUint32 ¶
func StringToUint64 ¶
func StringToUint8 ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.