MCPcopy
hub / github.com/minio/minio-go / UnmarshalMsg

Method UnmarshalMsg

pkg/set/msgp.go:48–56  ·  view source on GitHub ↗

UnmarshalMsg decodes the message from the bytes.

(bytes []byte)

Source from the content-addressed store, hash-verified

46
47// UnmarshalMsg decodes the message from the bytes.
48func (s *StringSet) UnmarshalMsg(bytes []byte) ([]byte, error) {
49 var ss setof.String
50 bytes, err := ss.UnmarshalMsg(bytes)
51 if err != nil {
52 return nil, err
53 }
54 *s = StringSet(ss)
55 return bytes, nil
56}
57
58// Msgsize returns the maximum size of the message.
59func (s StringSet) Msgsize() int {

Callers 3

UnmarshalBinaryMethod · 0.95

Calls 2

StringSetTypeAlias · 0.85
UnmarshalMsgMethod · 0.45

Tested by 2