transform

package
v0.0.0-...-ace9e8d Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BytesToFloat32

func BytesToFloat32(data []byte, order binary.ByteOrder) (float32, error)

func BytesToFloat64

func BytesToFloat64(data []byte, order binary.ByteOrder) (float64, error)

func BytesToInt16

func BytesToInt16(data []byte, order binary.ByteOrder) (int16, error)

func BytesToInt32

func BytesToInt32(data []byte, order binary.ByteOrder) (int32, error)

func BytesToInt64

func BytesToInt64(data []byte, order binary.ByteOrder) (int64, error)

func BytesToInt8

func BytesToInt8(data []byte, order binary.ByteOrder) (int8, error)

func BytesToUint16

func BytesToUint16(data []byte, order binary.ByteOrder) (uint16, error)

func BytesToUint32

func BytesToUint32(data []byte, order binary.ByteOrder) (uint32, error)

func BytesToUint64

func BytesToUint64(data []byte, order binary.ByteOrder) (uint64, error)

func BytesToUint8

func BytesToUint8(data []byte, order binary.ByteOrder) (uint8, error)

func BytesToUtf8String

func BytesToUtf8String(data []byte, encoding string) (string, error)

func DecodeBytesToString

func DecodeBytesToString(typeName string, data []byte, order binary.ByteOrder, encoding string) (string, error)

func DecodeValueFromBytes

func DecodeValueFromBytes(data []byte, order binary.ByteOrder, value interface{}) error

func EncodeStringToBytes

func EncodeStringToBytes(typeName string, data string, order binary.ByteOrder, encoding string) ([]byte, error)

func EncodeValueToBytes

func EncodeValueToBytes(value interface{}, order binary.ByteOrder) ([]byte, error)

func GbkToUtf8

func GbkToUtf8(s []byte) ([]byte, error)

func StringToFloat32

func StringToFloat32(data string) (float32, error)

func StringToFloat64

func StringToFloat64(data string) (float64, error)

func StringToInt16

func StringToInt16(data string) (int16, error)

func StringToInt32

func StringToInt32(data string) (int32, error)

func StringToInt64

func StringToInt64(data string) (int64, error)

func StringToInt8

func StringToInt8(data string) (int8, error)

func StringToUint16

func StringToUint16(data string) (uint16, error)

func StringToUint32

func StringToUint32(data string) (uint32, error)

func StringToUint64

func StringToUint64(data string) (uint64, error)

func StringToUint8

func StringToUint8(data string) (uint8, error)

func Utf8StringToBytes

func Utf8StringToBytes(str string, encoding string) ([]byte, error)

func Utf8ToGbk

func Utf8ToGbk(s []byte) ([]byte, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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