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

Method MarshalMsg

pkg/set/msgp.go:33–35  ·  view source on GitHub ↗

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

(bytes []byte)

Source from the content-addressed store, hash-verified

31// MarshalMsg encodes the message to the bytes.
32// Values are stored as a slice of strings or nil.
33func (s StringSet) MarshalMsg(bytes []byte) ([]byte, error) {
34 return setof.StringSorted(s).MarshalMsg(bytes)
35}
36
37// DecodeMsg decodes the message from the reader.
38func (s *StringSet) DecodeMsg(reader *msgp.Reader) error {

Callers 2

MarshalBinaryMethod · 0.95
AppendBinaryMethod · 0.95

Calls 1

MarshalMsgMethod · 0.45

Tested by

no test coverage detected