Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Codec ¶
type Codec interface { Skip(int) RegisterType(interface{}) error SetMaxSize(int) SetMaxSliceLen(int) Marshal(interface{}) ([]byte, error) Unmarshal([]byte, interface{}) error }
Codec marshals and unmarshals
func NewDefault ¶
func NewDefault() Codec
NewDefault returns a new codec with reasonable default values
Click to show internal directories.
Click to hide internal directories.