Documentation ¶
Index ¶
- func BoolToBytes(bo bool) (b []byte)
- func BytesGobReflect(f_b []byte, v reflect.Value) error
- func BytesGobStruct(f_b []byte, stur interface{}) error
- func BytesToBool(b []byte) (bo bool)
- func BytesToInt(b []byte) (i int)
- func BytesToInt16(b []byte) (i int16)
- func BytesToInt32(b []byte) (i int32)
- func BytesToInt64(b []byte) (i int64)
- func BytesToInt8(b []byte) (i int8)
- func BytesToMap(thetype string, b []byte) (themaps interface{}, err error)
- func BytesToSingle(thetype string, b []byte) (data interface{}, err error)
- func BytesToSlice(thetype string, b []byte) (slice interface{}, err error)
- func BytesToSliceString(b []byte) (s []string)
- func BytesToUint(b []byte) (i uint)
- func BytesToUint16(buf []byte) uint16
- func BytesToUint32(buf []byte) uint32
- func BytesToUint64(buf []byte) uint64
- func BytesToUint8(buf []byte) uint8
- func FromBinary(b []byte, e interface{}) (err error)
- func Int16ToBytes(i int16) (b []byte)
- func Int32ToBytes(i int32) (b []byte)
- func Int64ToBytes(i int64) (b []byte)
- func Int8ToBytes(i int8) (b []byte)
- func IntToBytes(i int) (b []byte)
- func JsonToStruct(f_b string, stur interface{}) (err error)
- func MapToBytes(thetype string, themaps interface{}) (b []byte, err error)
- func SingleToBytes(thetype string, data interface{}) (b []byte, err error)
- func SliceStringToBytes(s []string) (b []byte)
- func SliceToBytes(thetype string, slice interface{}) (b []byte, err error)
- func StructGobBytes(e interface{}) ([]byte, error)
- func StructToJson(e interface{}) (str string, err error)
- func ToBinary(e interface{}) (b []byte, err error)
- func Uint16ToBytes(i uint16) []byte
- func Uint32ToBytes(i uint32) []byte
- func Uint64ToBytes(i uint64) []byte
- func Uint8ToBytes(i uint8) []byte
- func UintToBytes(i uint) (b []byte)
- type BinaryCoder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BoolToBytes ¶
func BytesToBool ¶
func BytesToInt ¶
func BytesToInt16 ¶
func BytesToInt32 ¶
func BytesToInt64 ¶
func BytesToInt8 ¶
func BytesToMap ¶
Support map[string]string, map[string]time.Time, map[string]int64, map[string]uint64, map[string]float64, map[string]complex128.
func BytesToSingle ¶
Support bool, byte, all int, all uint, all float, all complex, which implements the encoding.BinaryMarshaler interface, which support gob encode.
func BytesToSlice ¶
Support bool, int, uint, int8, uint8, int64, uint64, float64, complex128, string, time.Time slice.
func BytesToSliceString ¶
func BytesToUint ¶
func FromBinary ¶
func Int16ToBytes ¶
func Int32ToBytes ¶
func Int64ToBytes ¶
func Int8ToBytes ¶
func IntToBytes ¶
func MapToBytes ¶
Support map[string]string, map[string]time.Time, map[string]int64, map[string]uint64, map[string]float64, map[string]complex128.
func SingleToBytes ¶
Support bool, byte, all int, all uint, all float, all complex, string, []byte, time.Time.
func SliceStringToBytes ¶
func SliceToBytes ¶
Support bool, int, uint, int8, uint8, int64, uint64, float64, complex128, string, time.Time slice.