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

Method Msgsize

msgp/setof/generated.go:394–401  ·  view source on GitHub ↗

Msgsize returns the maximum size of the message.

()

Source from the content-addressed store, hash-verified

392
393// Msgsize returns the maximum size of the message.
394func (s Int) Msgsize() int {
395 if s == nil {
396 return msgp.NilSize
397 }
398 size := msgp.ArrayHeaderSize
399 size += len(s) * msgp.IntSize
400 return size
401}
402
403// IntFromSlice creates a Int from a slice.
404func IntFromSlice(s []int) Int {

Callers 1

MarshalMsgMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected