UnmarshalMsg decodes the message from the bytes.
(bytes []byte)
| 100 | |
| 101 | // UnmarshalMsg decodes the message from the bytes. |
| 102 | func (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. |
| 113 | func (s IntSet) Msgsize() int { |