MCPcopy Create free account
hub / github.com/go-dev-frame/sponge / Unmarshal

Method Unmarshal

pkg/encoding/msgpack_encoding.go:15–21  ·  view source on GitHub ↗

Unmarshal msgpack decode

(data []byte, value interface{})

Source from the content-addressed store, hash-verified

13
14// Unmarshal msgpack decode
15func (mp MsgPackEncoding) Unmarshal(data []byte, value interface{}) error {
16 err := msgpack.Unmarshal(data, value)
17 if err != nil {
18 return err
19 }
20 return nil
21}

Callers 2

TestEncodingErrorFunction · 0.95
BenchmarkMsgpackFunction · 0.95

Calls 1

UnmarshalMethod · 0.65

Tested by 2

TestEncodingErrorFunction · 0.76
BenchmarkMsgpackFunction · 0.76