Documentation
¶
Index ¶
- func Decode(data []byte) (r interface{}, err error)
- func DecodeDict(data []byte, start int) (map[string]interface{}, int, error)
- func DecodeInt(data []byte, start int) (r int64, end int, err error)
- func DecodeList(data []byte, start int) (r []interface{}, end int, err error)
- func DecodeString(data []byte, start int) (r string, n int, err error)
- func Encode(data interface{}) ([]byte, error)
- func EncodeDict(data map[string]interface{}) ([]byte, error)
- func EncodeInt(data int64) ([]byte, error)
- func EncodeList(data []interface{}) ([]byte, error)
- func EncodeString(data string) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeDict ¶
DecodeDict decodes a dict as a map. It returns the map and the number of bytes successfully read.
func DecodeInt ¶
DecodeInt decodes an integer value. It returns the integer and the number of bytes successfully read.
func DecodeList ¶
DecodeList decodes a list value. It returns the array and the number of bytes successfully read.
func DecodeString ¶
DecodeString decodes a string from a given offset. It returns the string, the number of bytes successfully read.
func EncodeDict ¶
EncodeDict encodes a dict value.
func EncodeList ¶
EncodeList encodes a list value.
func EncodeString ¶
EncodeString encodes a string value.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.