Documentation ¶
Index ¶
- func Marshal(w io.Writer, in interface{}, zip bool) error
- func MarshalNaked(w io.Writer, in interface{}, name string) error
- func ReadByte(r io.Reader) (byte, error)
- func ReadBytes(r io.Reader) ([]byte, error)
- func ReadHeader(r io.Reader) (ver int, zip bool, err error)
- func ReadString(r io.Reader) (string, error)
- func ReadUvarint(r io.Reader) (uint64, error)
- func ReadVarint(r io.Reader) (int64, error)
- func Unmarshal(r io.Reader, out interface{}) error
- func UnmarshalNaked(r io.Reader, out interface{}) (name string, err error)
- func WriteByte(w io.Writer, c byte) error
- func WriteBytes(w io.Writer, s []byte) error
- func WriteHeader(w io.Writer, zip bool) error
- func WriteString(w io.Writer, s string) error
- func WriteUvarint(w io.Writer, x uint64) error
- func WriteVarint(w io.Writer, x int64) error
- type InvalidUnmarshalError
- type Jex
- type Marshaler
- type Unmarshaler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MarshalNaked ¶
写裸数据. name 可以为空
func UnmarshalNaked ¶
读裸数据
Types ¶
type InvalidUnmarshalError ¶
func (*InvalidUnmarshalError) Error ¶
func (e *InvalidUnmarshalError) Error() string
type Unmarshaler ¶
供对象实现的接口, 用自己的方法读取Jex数据块
Click to show internal directories.
Click to hide internal directories.