MCPcopy Index your code
hub / github.com/tinylib/msgp / Msgsize

Method Msgsize

msgp/setof/generated.go:120–129  ·  view source on GitHub ↗

Msgsize returns the maximum size of the message.

()

Source from the content-addressed store, hash-verified

118
119// Msgsize returns the maximum size of the message.
120func (s String) Msgsize() int {
121 if s == nil {
122 return msgp.NilSize
123 }
124 size := msgp.ArrayHeaderSize
125 for key := range s {
126 size += msgp.StringPrefixSize + len(key)
127 }
128 return size
129}
130
131// StringFromSlice creates a String from a slice.
132func StringFromSlice(s []string) String {

Callers 1

MarshalMsgMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected