Documentation ¶
Index ¶
- Constants
- Variables
- func BoolToBytes(v interface{}) ([]byte, error)
- func ByteToBytes(v interface{}) ([]byte, error)
- func BytesToBool(dataType reflect.Type, buf []byte) (interface{}, error)
- func BytesToErrorCode(dataType reflect.Type, buf []byte) (interface{}, error)
- func BytesToFloat32(dataType reflect.Type, buf []byte) (interface{}, error)
- func BytesToFloat64(dataType reflect.Type, buf []byte) (interface{}, error)
- func BytesToInt(dataType reflect.Type, buf []byte) (interface{}, error)
- func BytesToInt16(dataType reflect.Type, buf []byte) (interface{}, error)
- func BytesToInt32(dataType reflect.Type, buf []byte) (interface{}, error)
- func BytesToInt64(dataType reflect.Type, buf []byte) (interface{}, error)
- func BytesToInt8(dataType reflect.Type, buf []byte) (interface{}, error)
- func BytesToMapInt32Rpc(dataType reflect.Type, buf []byte) (interface{}, error)
- func BytesToMapString(dataType reflect.Type, buf []byte) (interface{}, error)
- func BytesToMapStringRpc(dataType reflect.Type, buf []byte) (interface{}, error)
- func BytesToMapUInt32Rpc(dataType reflect.Type, buf []byte) (interface{}, error)
- func BytesToNull(dataType reflect.Type, buf []byte) (interface{}, error)
- func BytesToSliceInt32(dataType reflect.Type, buf []byte) (interface{}, error)
- func BytesToSliceInterface(dataType reflect.Type, buf []byte) (interface{}, error)
- func BytesToSliceString(dataType reflect.Type, buf []byte) (interface{}, error)
- func BytesToSliceUInt32(dataType reflect.Type, buf []byte) (interface{}, error)
- func BytesToString(dataType reflect.Type, buf []byte) (interface{}, error)
- func BytesToUInt16(dataType reflect.Type, buf []byte) (interface{}, error)
- func BytesToUInt32(dataType reflect.Type, buf []byte) (interface{}, error)
- func BytesToUInt64(dataType reflect.Type, buf []byte) (interface{}, error)
- func BytesTobyte(dataType reflect.Type, buf []byte) (interface{}, error)
- func ErrorCodeToBytes(v interface{}) ([]byte, error)
- func Float32ToBytes(v interface{}) ([]byte, error)
- func Float64ToBytes(v interface{}) ([]byte, error)
- func Int16ToBytes(v interface{}) ([]byte, error)
- func Int32ToBytes(v interface{}) ([]byte, error)
- func Int64ToBytes(v interface{}) ([]byte, error)
- func Int8ToBytes(v interface{}) ([]byte, error)
- func IntToBytes(v interface{}) ([]byte, error)
- func JsonStructMarshal(v interface{}) ([]byte, error)
- func JsonStructUnmarshal(dataType reflect.Type, buf []byte) (interface{}, error)
- func MapInt32InterfaceToBytes(v interface{}) ([]byte, error)
- func MapStringInterfaceToBytes(v interface{}) ([]byte, error)
- func MapUInt32InterfaceToBytes(v interface{}) ([]byte, error)
- func NullToBytes(v interface{}) ([]byte, error)
- func OnRegister(d interface{}, sf func(d interface{}) ([]byte, error), ...)
- func Serialize(d interface{}) (dtype string, b []byte, err error)
- func SerializeInit()
- func SliceInt32ToBytes(v interface{}) ([]byte, error)
- func SliceInterfaceToBytes(v interface{}) ([]byte, error)
- func SliceStringToBytes(v interface{}) ([]byte, error)
- func SliceUInt32ToBytes(v interface{}) ([]byte, error)
- func StringToBytes(v interface{}) ([]byte, error)
- func UInt16ToBytes(v interface{}) ([]byte, error)
- func UInt32ToBytes(v interface{}) ([]byte, error)
- func UInt64ToBytes(v interface{}) ([]byte, error)
- func UnSerialize(dtype string, d []byte) (interface{}, error)
- type RpcData
- type SerializeData
Constants ¶
View Source
const (
NULL = "null" //nil null
)
Variables ¶
View Source
var (
SerializeObjs map[string]*SerializeData
)
Functions ¶
func BoolToBytes ¶
func ByteToBytes ¶
func BytesToErrorCode ¶
func BytesToMapInt32Rpc ¶
func BytesToMapString ¶
func BytesToMapStringRpc ¶
func BytesToMapUInt32Rpc ¶
func BytesToNull ¶
反序列化--------------------------------------------------------------------------------------------------------------
func BytesToSliceInt32 ¶
func BytesToSliceInterface ¶
func BytesToSliceString ¶
func BytesToSliceUInt32 ¶
func ErrorCodeToBytes ¶
func Float32ToBytes ¶
func Float64ToBytes ¶
func Int16ToBytes ¶
func Int32ToBytes ¶
func Int64ToBytes ¶
func Int8ToBytes ¶
func IntToBytes ¶
func JsonStructMarshal ¶
func JsonStructUnmarshal ¶
func NullToBytes ¶
----------------------------------------------内置序列化-------------------------------------------------------------- 序列化----------------------------------------------------------------------------------------------------------------
func OnRegister ¶
func SerializeInit ¶
func SerializeInit()
func SliceInt32ToBytes ¶
func SliceInterfaceToBytes ¶
func SliceStringToBytes ¶
func SliceUInt32ToBytes ¶
func StringToBytes ¶
func UInt16ToBytes ¶
func UInt32ToBytes ¶
func UInt64ToBytes ¶
func UnSerialize ¶
Types ¶
type RpcData ¶
func GetRpcData ¶
Click to show internal directories.
Click to hide internal directories.