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

Method MarshalMsg

pkg/set/msgp.go:87–89  ·  view source on GitHub ↗

MarshalMsg encodes the message to the bytes. Values are stored as a slice of ints or nil.

(bytes []byte)

Source from the content-addressed store, hash-verified

85// MarshalMsg encodes the message to the bytes.
86// Values are stored as a slice of ints or nil.
87func (s IntSet) MarshalMsg(bytes []byte) ([]byte, error) {
88 return setof.IntSorted(s).MarshalMsg(bytes)
89}
90
91// DecodeMsg decodes the message from the reader.
92func (s *IntSet) DecodeMsg(reader *msgp.Reader) error {

Callers 8

MarshalBinaryMethod · 0.95
AppendBinaryMethod · 0.95
MarshalMsgMethod · 0.45
TestStringSetMsgsizeFunction · 0.45
TestIntSetMsgpRoundtripFunction · 0.45
TestIntSetMsgsizeFunction · 0.45
TestMsgpSortedBehaviorFunction · 0.45

Calls

no outgoing calls

Tested by 5

TestStringSetMsgsizeFunction · 0.36
TestIntSetMsgpRoundtripFunction · 0.36
TestIntSetMsgsizeFunction · 0.36
TestMsgpSortedBehaviorFunction · 0.36