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

Method Msgsize

msgp/setof/generated.go:1120–1127  ·  view source on GitHub ↗

Msgsize returns the maximum size of the message.

()

Source from the content-addressed store, hash-verified

1118
1119// Msgsize returns the maximum size of the message.
1120func (s ByteSorted) Msgsize() int {
1121 if s == nil {
1122 return msgp.NilSize
1123 }
1124 size := msgp.ArrayHeaderSize
1125 size += len(s) * msgp.ByteSize
1126 return size
1127}
1128
1129// ByteSortedFromSlice creates a ByteSorted from a slice.
1130func ByteSortedFromSlice(s []byte) ByteSorted {

Callers 1

MarshalMsgMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected