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

Method UnmarshalMsg

pkg/set/msgp.go:102–110  ·  view source on GitHub ↗

UnmarshalMsg decodes the message from the bytes.

(bytes []byte)

Source from the content-addressed store, hash-verified

100
101// UnmarshalMsg decodes the message from the bytes.
102func (s *IntSet) UnmarshalMsg(bytes []byte) ([]byte, error) {
103 var is setof.Int
104 bytes, err := is.UnmarshalMsg(bytes)
105 if err != nil {
106 return nil, err
107 }
108 *s = IntSet(is)
109 return bytes, nil
110}
111
112// Msgsize returns the maximum size of the message.
113func (s IntSet) Msgsize() int {

Callers 5

UnmarshalBinaryMethod · 0.95
TestIntSetMsgpRoundtripFunction · 0.95
TestMsgpSortedBehaviorFunction · 0.95
UnmarshalMsgMethod · 0.45

Calls 1

IntSetTypeAlias · 0.85

Tested by 3

TestIntSetMsgpRoundtripFunction · 0.76
TestMsgpSortedBehaviorFunction · 0.76