Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrWrongValueType = errors.New("protobuf: convert on wrong type value")
ErrWrongValueType is the errors used for marshal the value with protobuf encoding.
Functions ¶
This section is empty.
Types ¶
type Serializer ¶
type Serializer struct { }
func (*Serializer) GetMessageName ¶
func (s *Serializer) GetMessageName(msg proto.Message) string
func (*Serializer) Marshal ¶
func (s *Serializer) Marshal(v interface{}) ([]byte, error)
Marshal returns the protobuf encoding of v.
func (*Serializer) Unmarshal ¶
func (s *Serializer) Unmarshal(data []byte, v interface{}) error
Unmarshal parses the protobuf-encoded game_config and stores the result in the value pointed to by v.
Click to show internal directories.
Click to hide internal directories.