MCPcopy Index your code
hub / github.com/vmihailenco/msgpack / EncodeMsgpack

Method EncodeMsgpack

types_test.go:101–106  ·  view source on GitHub ↗
(enc *msgpack.Encoder)

Source from the content-addressed store, hash-verified

99)
100
101func (s *CustomEncoder) EncodeMsgpack(enc *msgpack.Encoder) error {
102 if s == nil {
103 return enc.EncodeNil()
104 }
105 return enc.EncodeMulti(s.str, s.ref, s.num)
106}
107
108func (s *CustomEncoder) DecodeMsgpack(dec *msgpack.Decoder) error {
109 return dec.DecodeMulti(&s.str, &s.ref, &s.num)

Callers

nothing calls this directly

Calls 2

EncodeNilMethod · 0.80
EncodeMultiMethod · 0.80

Tested by

no test coverage detected