UnmarshalMsg decodes the message from the bytes.
(bytes []byte)
| 46 | |
| 47 | // UnmarshalMsg decodes the message from the bytes. |
| 48 | func (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. |
| 59 | func (s StringSet) Msgsize() int { |