MCPcopy
hub / github.com/tinylib/msgp / Msgsize

Method Msgsize

msgp/setof/generated.go:263–272  ·  view source on GitHub ↗

Msgsize returns the maximum size of the message.

()

Source from the content-addressed store, hash-verified

261
262// Msgsize returns the maximum size of the message.
263func (s StringSorted) Msgsize() int {
264 if s == nil {
265 return msgp.NilSize
266 }
267 size := msgp.ArrayHeaderSize
268 for key := range s {
269 size += msgp.StringPrefixSize + len(key)
270 }
271 return size
272}
273
274// StringSortedFromSlice creates a StringSorted from a slice.
275func StringSortedFromSlice(s []string) StringSorted {

Callers 1

MarshalMsgMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected