DecodeMsg decodes the message from the reader.
(reader *msgp.Reader)
| 36 | |
| 37 | // DecodeMsg decodes the message from the reader. |
| 38 | func (s *StringSet) DecodeMsg(reader *msgp.Reader) error { |
| 39 | var ss setof.String |
| 40 | if err := ss.DecodeMsg(reader); err != nil { |
| 41 | return err |
| 42 | } |
| 43 | *s = StringSet(ss) |
| 44 | return nil |
| 45 | } |
| 46 | |
| 47 | // UnmarshalMsg decodes the message from the bytes. |
| 48 | func (s *StringSet) UnmarshalMsg(bytes []byte) ([]byte, error) { |