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

Method DecodeMsgpack

example_CustomEncoder_test.go:21–23  ·  view source on GitHub ↗
(dec *msgpack.Decoder)

Source from the content-addressed store, hash-verified

19}
20
21func (s *customStruct) DecodeMsgpack(dec *msgpack.Decoder) error {
22 return dec.DecodeMulti(&s.S, &s.N)
23}
24
25func ExampleCustomEncoder() {
26 b, err := msgpack.Marshal(&customStruct{S: "hello", N: 42})

Callers

nothing calls this directly

Calls 1

DecodeMultiMethod · 0.80

Tested by

no test coverage detected