Msgsize returns the maximum size of the message.
()
| 1973 | |
| 1974 | // Msgsize returns the maximum size of the message. |
| 1975 | func (s Int16Sorted) Msgsize() int { |
| 1976 | if s == nil { |
| 1977 | return msgp.NilSize |
| 1978 | } |
| 1979 | size := msgp.ArrayHeaderSize |
| 1980 | size += len(s) * msgp.Int16Size |
| 1981 | return size |
| 1982 | } |
| 1983 | |
| 1984 | // Int16SortedFromSlice creates a Int16Sorted from a slice. |
| 1985 | func Int16SortedFromSlice(s []int16) Int16Sorted { |